Changes

Jump to: navigation, search

Team Excellence - oop344 20113 Code Standards

138 bytes removed, 16:21, 14 October 2011
If Statement
I have a proposal. How about doing it like this:
== If Statement ==
 
'''Sandip:'''
I have a proposal. How about doing it like this:
<syntaxhighlight lang="cpp">
if (condition)
}
</syntaxhighlight>
Notice the space between the 'if' and '(' and the lack of a space between the ')' and '{'. Also the 'else' starts a line under the '}'.
 
If the "stuff" is only one line the curly braces can be omitted.
'''Dzmitry:'''
1
edit

Navigation menu