Changes

Jump to: navigation, search

Team Excellence - oop344 20113 Code Standards

380 bytes removed, 23:53, 18 October 2011
Class Standards
== If Statement ==
'''Sandip:'''
I have a proposal. How about doing it like this:
<syntaxhighlight lang="cpp">
if (condition)
{
stuff;
}
else if (condition)
{
stuff;
}
else
{
stuff;
}
</syntaxhighlight>
'''Dzmitry:'''
if (condition){
stuff;
}else if (condition){
stuff;
}else{
stuff;
}
== For Loop ==
<syntaxhighlight lang="cpp">
for (i=0; condition; i++){
stuff;
}
== While Loop ==
<syntaxhighlight lang="cpp">
while (true){
stuff;
}
**/
#ifndef _CLASS__INITIAL_CLASS_#define _CLASS__INITIAL_CLASS_
class CLASS {
int a_a; int b_b;
public:
/* Again Important Header goes here */
if(condition) {
stuffs;
}
/* All Loops */
for(i=0; i<len; i++) {
statements;
}
while(condition) {
statements;
}
* October 12, 2011
**/
</syntaxhighlight>
 
'''Suggested By: Chad'''
<syntaxhighlight lang="cpp">
// One Line File Name / Description
// filename.h
//
// Chad Pilkey
// Oct 13 2011
// Version 1.0
//
</syntaxhighlight>

Navigation menu