Changes

Jump to: navigation, search

GP

946 bytes added, 20:43, 5 November 2012
Coding Rules
== Coding Rules ==
* Each class MUST have its own header file and cpp file for implementation.
* Use the class name for the name of the file but make sure it is all lowercase.
For example CFrame class should have cframe.h and cframe.cpp files for its implementation.
* Add recompilation safeguards to all your header files.
The name of safeguard must follow the next rule:
__[Team name]_[namespace]_[class name]_H__
For example(CFrame.h):
#ifndef __GP_CIO_CFRAME_H__
#define __GP_CIO_CFRAME_H__
.................
.................
#endif
* Member variables must start from a underbar.
For example: int _data, char* _covered;
* The other rules to declare variables
(X) int i, j;
(O) int i;
int j;
(X) char *_date;
(O) char* _date;
* Use 2 spaces to indent
* General rules.
(X) if(true) return x;
(O} if(true) {
return x;
}
 
(X) for(;;) x = y;
(O) for(;;) {
x = y;
}
(O) for(;;);
 
== meetings ==
* latest will be on top

Navigation menu