-
Notifications
You must be signed in to change notification settings - Fork 0
/
codestyle.rtf
49 lines (48 loc) · 923 Bytes
/
codestyle.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{\rtf1\ansi\ansicpg1252\cocoartf1265
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
\f0\fs24 \cf0 Naming:\
The private property:\
e.g:\
_myProperty\
The public property:\
e.g:\
myProperty\
The private function:\
e.g:\
_MyFuction();\
The public function:\
MyFuction();\
The class:\
e.g:\
MyClass\
\{\
\
\}\
Generic variables should have the same name as their type\
e.g:\
SetDrawable(IDrawable * drwable);\
Iterator variables should be called i, j, k ,\
e.g\
for(int i=0 ,i<length,i++)\
\
\
Comments:\
The single line comments\
e.g:\
//This is my comments\
The multiple line comments\
/*\
* This is my comments\
*/\
\
coding:\
\
Single statement if-else, for or while statements can be written\
e.g\
if(isDone)\
\{\
CleanUp();\
\}}