Changes

Jump to: navigation, search

Team S - OOP344 20133

303 bytes added, 15:06, 25 October 2013
Code Blocks
* static prefix: static int s_staticInt;
=== Code Blocks ===
* # all braces have their own line# one command blocks should be on one line, ie. if's, for's, while's, etc.
<syntaxhighlight lang="cpp">
/* examples */if(condition) // std 1
{
doSomething();
doSomething();
}
else
{
doSomethingElse();
doSomethingElse();
}
 
if (exists()) pop(); // std 2
for (i=0; i<10; i++, str[i] = '\0'); // std 2
while (exists()) pop(); // std 2
</syntaxhighlight>

Navigation menu