Open main menu

CDOT Wiki β

Changes

Team Excellence - oop344 20113 Code Standards

387 bytes added, 23:43, 13 October 2011
Comments
== Class Member Variables ==
I think we should follow Fardad's lead and start all of our class' member variable names with an underscore '_' to differentiate them from other variables.
== Comments ==We have two choices:<syntaxhighlight lang="cpp">// this comment is an exampleint foo(int x);</syntaxhighlight>OR<syntaxhighlight lang="cpp">int foo(int x); // this comment is an example</syntaxhighlight>I prefer the second one, because I got used to it, but I think that the second one is more affective, and I think it is the best choice, to out comments on the top line. 
== File Header ==
At the start of your files put a comment that defines the file and and declares when it was last updated and by whom