Changes between Version 4 and Version 5 of coding_rules

Show
Ignore:
Timestamp:
06/20/11 11:48:44 (2 years ago)
Author:
morlighe
Comment:

minor

Legend:

Unmodified
Added
Removed
Modified
  • coding_rules

    v4 v5  
    22== General guidelines == 
    33 
    4  - comment your code extensively (everybody must understand what is being done) 
     4 - comment your code (everybody must understand what is being done) 
    55 - NEVER more than one blank line please! 
     6 - Align operators vertically to emphasize local program structure and semantics when possible 
     7 - Do not use excessive blank spaces (especially in equations) 
    68 
    79== C/C++ == 
     
    1517for(int i=0<i<n;i++)  A[i]=i; 
    1618 
     19for(int i=0<i<n;i++){ 
     20   A[i]=B[i]; 
     21   B[i]=0; 
     22} 
     23 
    1724if(a==0) bool=true; 
     25 
     26if(a==0) 
     27   bool=true; 
     28else if(a==1) 
     29   bool=flase; 
     30else 
     31   _error_("a=%g not supported",a); 
    1832 
    1933if(a==0){ 
     
    2438    output=false 
    2539    c=a; 
    26 } 
    27  
    28 for(int i=0<i<n;i++){ 
    29    A[i]=B[i]; 
    30    B[i]=0; 
    3140} 
    3241}}}