Difference between revisions of "Pineapple 20131 - OOP344"
(→Coding Style) |
(→Coding Style) |
||
Line 15: | Line 15: | ||
'''Blocks''' | '''Blocks''' | ||
− | * | + | * Place the brackets like this |
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
− | int main() | + | int main() { |
− | { | ||
int a; | int a; | ||
int b; | int b; | ||
− | if (a == b) | + | if (a == b) { |
− | |||
cout << "good" << endl; | cout << "good" << endl; | ||
} | } | ||
Line 48: | Line 46: | ||
a; // bad | a; // bad | ||
Single line blocks must be surrounded by { and } | Single line blocks must be surrounded by { and } | ||
− | if(whatever) | + | if(whatever){ |
− | |||
do this: | do this: | ||
} // good | } // good |
Latest revision as of 01:25, 15 February 2013
OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources
Contents
Pineapple (Team 4)
Project Marking Percentage
Repository
- repo Github id: Pineapp (https://github.com/Seneca-OOP344/4-Pineapp.git)
Coding Style
Indentation
- 4 spaces
Blocks
- Place the brackets like this
int main() {
int a;
int b;
if (a == b) {
cout << "good" << endl;
}
}
Variable Naming
- The first word start with lowercase, and the rest start with uppercase
char* firstName;
char* lastName;
int age;
We will also follow Fardad's rules for proper code
int a; // good
int b; // good
int a, b. c; //bad
int
a; // bad
Single line blocks must be surrounded by { and }
if(whatever){
do this:
} // good
if(whatever) do this; //bad
if(whatever)
do this; // bad
Team Members
First Name | Last Name | Section | Seneca ID | Wiki ID | IRC nick | Github ID | Blog URL |
---|---|---|---|---|---|---|---|
Kevin | Persaud | B | kpersaud16 | Kevin Persaud | gsoul | persaud | Kevin's Blog |
Justin | Grice | B | jgrice | Justin Grice | JGrice | JGrice | Justin's Blog |
Glaser King San | Lo | B | gklo | Glaser King San Lo | gklo | gklo | Glaser's Pool |
Zhijian | Zhou | B | zzhou33 | Zhijian Zhou | zzhou33 | Gianzhou | Zhijian's blog |