1
edit
Changes
→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?");
}
printf("what?");
}