Difference between revisions of "Irc logs of meeting (Coding style and standards) - oop344 20113"

From CDOT Wiki
Jump to: navigation, search
(Indentation)
(Blocks)
 
Line 6: Line 6:
 
<big><syntaxhighlight lang="cpp">
 
<big><syntaxhighlight lang="cpp">
 
if(condition) {
 
if(condition) {
whatever;
+
    whatever;
 
}
 
}
 
</syntaxhighlight></big>
 
</syntaxhighlight></big>
 +
 
=== Variable Naming ===
 
=== Variable Naming ===
 
* Each object must have its own type
 
* Each object must have its own type
 
=== Class Naming ===
 
=== Class Naming ===
 
* Use the class name for the name of the file but make sure it is all lowercase
 
* Use the class name for the name of the file but make sure it is all lowercase

Latest revision as of 22:00, 22 October 2013

Indentation

  • No Tab Character allowed. (replace tabs with 4 spaces)
  • 4 spaces for indentation

Blocks

if(condition) {
    whatever;
}

Variable Naming

  • Each object must have its own type

Class Naming

  • Use the class name for the name of the file but make sure it is all lowercase