Changes between Version 3 and Version 4 of coding_rules
- Timestamp:
- 03/31/11 14:43:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
coding_rules
v3 v4 8 8 9 9 - if/for should follow this: 10 - no space fetween if/for and its statement 11 - If an if/for holds on one line, then do not use brackets 12 - Otherwise, use brackets 10 13 {{{ 11 14 #!c … … 29 32 }}} 30 33 34 - Comments should follow the code indentation and there should not be any blank line between a comment and the code it is referring to 35 {{{ 36 #!c 37 /*Assigning values of A*/ 38 for(int i=0<i<n;i++){ 39 40 /*The comment here is indented*/ 41 A[i]=i; 42 } 43 }}} 44 45 - Function declaration should hold on one line only 46 {{{ 47 #!c 48 bool Test(int a,double b,char* c){ 49 }}} 31 50 == Matlab == 32 51