Changes

Jump to: navigation, search

Team E - OOP344 20133

161 bytes added, 14:13, 23 October 2013
Coding Style and Standards
int b;
CDialog D;
</syntaxhighlight>
* Member variables indicated with underline prefix:
<syntaxhighlight lang="cpp">
class MyClass {
int _var1;
double _var2;
char* _var3;
public:
MyClass();
};
</syntaxhighlight>
* Parameter variables indicated without underline prefix:
void method(int param1, double param2, char* param3);
</syntaxhighlight>
* Declare variable before using use inside of loop instead of creating it (as opposed to declaration inside of loop (special requirement):
<syntaxhighlight lang="cpp">
//Proper declaration
int i;
for (i = 0; i <= 5; i++) {
printf("what?");
}
<//syntaxhighlight>Instead of<syntaxhighlight lang="cpp">Improper declarationfor (int i = 0; i <=5; i++) {
printf("what?");
}

Navigation menu