Open main menu

CDOT Wiki β

Changes

Team Excellence - oop344 20113 Code Standards

580 bytes added, 17:06, 14 October 2011
Class Standards
#endif
</syntaxhighlight>
 
'''All Cpp File Standards:'''
<syntaxhighlight lang="cpp">
 
/* Function Starts here */
function name() {
 
/* Header goes here */
int key = 0; // Comment goes here
bool done = false;
 
/* Again Important Header goes here */
if(condition)
{
stuffs;
}
 
/* All Loops */
for(i=0; i<len; i++)
{
statements;
}
while(condition)
{
statements;
}
 
}
/* function ends here */
</syntaxhighlight>
1
edit