(The semicolon between ) and { should not be there, and results in the contents of the if block being executed unconditionally - it's actually a separate if statement with an empty-body followed by a standalone block that happens to start on the same line)
-
-
Dziękujemy. Twitter skorzysta z tych informacji, aby Twoja oś czasu bardziej Ci odpowiadała. CofnijCofnij
-
-
-
... I think I did that in C :)
-
Doh sorry, I completely missed the semi colon, I thought the conditional was supposed to be a function missing brackets I do that *all the time* :)
- Pokaż odpowiedzi
Nowa rozmowa -
-
-
Oh man, I had that exact problem at school and it took both me and my professor *hours* to find it.
-
Yeah, I think it took me something like that too. I remember spending quite some time very confused before I asked my coworker for help debugging it.
Koniec rozmowy
Nowa rozmowa -
-
-
Ditto for loops :-). Also: spent an afternoon debugging teachers code with a buggy bubble sort. The typo was in tmp = x; x = y; x = tmp
Dziękujemy. Twitter skorzysta z tych informacji, aby Twoja oś czasu bardziej Ci odpowiadała. CofnijCofnij
-
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.