Kommentarer (2)
  • Populær
  • Ny
  • Gammel
Du skal være logget ind for at skrive en kommentar
Lukasz
Niveau,,NiNi
4 May 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
Niveau,,NiNi
4 May 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ąć?