Changes

Jump to: navigation, search

Team Mighty Morphin Coding Rangers - OOP344

190 bytes removed, 11:48, 27 January 2010
m
no edit summary
<ul>
<li>use single letters (like i, j, a, or v) for counters only; </li>
<li>one variable per type {better off per line} even if it's the same type (<b>no</b> using commas to share a variable during declaration);</li><code> Eg. correct int i; int j; int k; Eg. wrong int i,j,k; Eg. so/so int i; int j; int k;</code> <li>assign the variable a name that best describes what it is used for (but please don't make it too long);</li>
<li>and separate words with caps.
<br/> Eg. no<b>O</b>f<b>O</b>rders, not no<b>o</b>f<b>o</b>rders
<li>Only <code>main ()</code> will start at column 1. Tab every block of code four spaces over.</li>
<li>Every one variable must be declared in a per type {better off per line by itself. This is } even if it's the same type (<b>no</b> using commas to make commenting about each share a variable easierduring declaration);</li> <code> Eg. See above example: x and ycorrect int i; int j; int k; Eg. wrong int i, though both int'sj, are on separate linesk; Eg.so/so int i; int j; int k;</licode>
<li>Include an empty line after the declaration of variables (see above example).</li>
1
edit

Navigation menu