Open main menu

CDOT Wiki β

Changes

OOP344 Temporary

246 bytes added, 13:24, 28 October 2009
Naming Conventions OOP344 northWind87: split the conventions, added indent size
* Header file defines should be preceeded and followed with ''' Two Underscores '''
** ''' ie ''' <code>__CIOL_H__, __IO_FORM_H__</code>
 
=== Other Conventions ===
* Pointer declaration should ''' emphasize the type ''' with the <b>"*"</b> being pushed against the right side of the data type as opposed to the left side of the variable name.
** ''' ie ''' <code>char* str, int* num, void* addr</code>
* As well, please leave a space after every comma and every semicolon if something follows it.
** ''' ie ''' <code>foo(int firstInt, int secondInt, int thirdInt), x = bugSquish(parm1, parm2), for (int i = 0; i < 10; i++)</code>
* When indenting, please indent by using ''' two spaces ''' as opposed to the tab character as the tab character changes size between systems
** ''' ie '''
<pre>
if (x == y) {
doStuff();
doSomeMoreStuff();
}
</pre>
* Finally, <code>void</code> should always be explicitly declared.
** ''' ie ''' <code>void doStuff(void), int getInt(void)</code>