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

From CDOT Wiki
Jump to: navigation, search
(Created page with '=== Indentation === * No Tab Character allowed. (replace tabs with 2 spaces) * 2 spaces for indentation === Blocks === <big><syntaxhighlight lang="cpp"> if(condition) { whatever…')
 
(Indentation)
Line 1: Line 1:
 
=== Indentation ===
 
=== Indentation ===
* No Tab Character allowed. (replace tabs with 2 spaces)
+
* No Tab Character allowed. (replace tabs with 4 spaces)
* 2 spaces for indentation
+
* 4 spaces for indentation
 +
 
 
=== Blocks ===
 
=== Blocks ===
 
<big><syntaxhighlight lang="cpp">
 
<big><syntaxhighlight lang="cpp">

Revision as of 21:59, 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