Changes

Jump to: navigation, search

Team Excellence - oop344 20113 Code Standards

387 bytes added, 00:43, 14 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

Navigation menu