Open main menu

CDOT Wiki β

Changes

OOP344 20131 Oopers

278 bytes added, 03:51, 14 February 2013
Coding Guidelines
'''1)''' Software: Visual Studio 2010.
'''2)''' IdentationBlocking: 3 spaces!Open and closed brackets {} should each be in a new line. Single syntax in functions are to be blocked as well.
'''Examples:'''  if(whatever) do this; //bad  if(whatever) do this; // bad  if(whatever) { do this: } // good '''3)''' Identation: 3 spaces! '''4)''' Variable Names:
* Private instance var - '''_dataExample''' - starts with underscore, first word is in lowercase, first letter of second word is uppercase (rest of characters are lowercase), etc.
* Public functions - '''GetData()''' - first letter of each word in function name is uppercase (rest of characters are lowercase).
int a, b. c; //bad
'''45)''' Seneca Honesty Policy, Date, Professor Name, Student (or Group), Section, Class should be in a comment on the top of every source file ('''.cpp''' and '''.h''')
== '''Team Members''' ==