留言 (2)
  • 受歡迎
你必須登入才能留言
Lukasz
等級 7 ,Trzebiel,Poland
4 五月 2020, 17:20
cze, małe pytanko, co jest nie tak przed while daje int i = 0 i warunek: error: bad operand types for binary operator '&&' while(i < 10 && i++) { ^ first type: boolean second type: int
Damian Siadaczka
等級 20 ,Warszawa,Poland
4 五月 2020, 19:16
Trudno mi się odnieść, wstawiłeś komentarz pod moim profilem, komunikat test taki ponieważ po prawej stronie && wartość nie jest binarna i<10 da nam true albo false, ale i++ - już nie, zamiast tego zwróci "i" a następnie podniesie tą wartość o jeden, A co chciałeś osiągnąć?