Difference between revisions of "Team H - OOP344 - 20132"

From CDOT Wiki
Jump to: navigation, search
(Master Status)
(Programming Style)
Line 10: Line 10:
 
== Programming Style ==
 
== Programming Style ==
 
=== Indentation===
 
=== Indentation===
* 2 spaces for indentation
+
* Indents made with tabs
* Do not use tab character
+
* Tab size is four characters
 
=== Blocks ===
 
=== Blocks ===
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
if(condition){
+
int main(){
   whatever;
+
    char ch = '0';
 +
    int i;
 +
 
 +
    for(i=0; i<10; i++){
 +
        cout << i;
 +
    }
 +
 
 +
    switch(ch) {
 +
    case 0:
 +
        cout << 0;
 +
        break;
 +
    case 1:
 +
        cout << 1;
 +
        break;
 +
    }
 +
 
 +
   return 0;
 
}</syntaxhighlight>
 
}</syntaxhighlight>
 +
=== Classes ===
 +
<syntaxhighlight lang="cpp">
 +
class Console {
 +
private:
 +
 +
public:
 +
    Console();
 +
    ~Console();
 +
}
 +
</syntaxhighlight>
 
=== Variable Naming ===
 
=== Variable Naming ===
 +
Lower Camel Case
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
int main()
+
curPos
{
+
setPos
  int a = 1;
+
row
  char* bookNames;
+
col
  char bookId
 
  return 0;
 
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 13:51, 13 June 2013

Modify this page to the needs of your team.
OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources

Repository

Master Status

  • Master (last pushed/being pushed) by Terry
    • Styled Initial Code

Announcements

Programming Style

Indentation

  • Indents made with tabs
  • Tab size is four characters

Blocks

int main(){
    char ch = '0';
    int i;

    for(i=0; i<10; i++){
        cout << i;
    }

    switch(ch) {
    case 0:
        cout << 0;
        break;
    case 1:
        cout << 1;
        break;
    }

  return 0;
}

Classes

class Console {
private:

public:
    Console();
    ~Console();
}

Variable Naming

Lower Camel Case

curPos
setPos
row
col

Team Members

Add table rows by replacing sample table row, cell values with yours

OOP344 - Team name
First Name Last Name Section Seneca Id & email wiki id IRC nick GITHUB ID Blog URL
Drew Terrance Kerr A dtkerr Drew Terrance Kerr Praefractus TerryKerr dtkerr

Discussions