Quote:
Originally Posted by Natsheh
Because the compiler expects the code to be in curly brackets .
|
The code already has a curly bracket at the end. Should there be more curly brackets? If yes, where should they be?
Quote:
Originally Posted by fysiks
Use tabs. Show whitespace. Much easier to maintain proper indentation.
I actually don't think that if there is only a single line that the compiler cares (though the person should care). I dislike not using braces most of the time. I basically only skip braces when I'm returning a value and ending the function execution.
|
Yes, now i know i should do this.