3 ms·
My CS101 prof would give 50-100 line blocks of code, and hidden in them somewhere would be something like: if(condition); { some stuff } Note
by gamegoblin 12y ago
My CS101 prof would give 50-100 line blocks of code, and hidden in them somewhere would be something like:
if(condition); {
some stuff
}
Note the semicolon after the if-statement.
The tests became games of "find the semicolon or = in place of ==". Ugh.
- oneeyedpigeon 12y agoThankfully, your compiler probably warns about this nowadays, making such pointlessness obsolete.
- ygra 12y agoAnd the static analysis tool you're hopefully using.