1
edit
Changes
→Variable Naming
=== Variable Naming ===
<syntaxhighlight lang="cpp">
int main(){
int a = 1;
char* bookNames;
char bookId
return 0;
}
</syntaxhighlight>
* Try to avoid abbreviations unless very well known please:
<syntaxhighlight lang="cpp">
int main() {
int letterCount // Good
int numCount // Good
int ltrCnt // Bad
int numErrors // Good
int n // Bad - unknown meaning
int nerr // Bad - ambiguous
}
</syntaxhighlight>