1
edit
Changes
→Coding Style
== 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
<syntaxhighlight lang="cpp">
int main() {
int a;
int b;
if (a == b) {
cout << "good" << endl;
}
}
</syntaxhighlight>
'''Variable Naming'''
* The first word start with lowercase, and the rest start with uppercase
<syntaxhighlight lang="cpp">
char* firstName;
char* lastName;
int age;
</syntaxhighlight>
We will also follow Fardad's rules for proper code
<syntaxhighlight lang="cpp">
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
</syntaxhighlight>
== Team Members ==
[mailto:kpersaud16@myseneca.ca;jgrice@myseneca.ca;gklo@myseneca.ca;zzhou33@myseneca.ca;?subject=oop344 Email to all members]
{| class="wikitable sortable" border="1" cellpadding="5"
|-
|[[User:Kevin Persaud|Kevin]]||Persaud||B||[mailto:kpersaud16@myseneca.ca?subject=oop344 kpersaud16]||[[Special:Contributions/Kevin Persaud|Kevin Persaud]]||gsoul||persaud|| [http://kevoop.wordpress.com Kevin's Blog]
|-
|[[User:Justin Grice|Justin]]||Grice|||B||[mailto:jgrice@myseneca.ca?subject=oop344 jgrice]||[[Special:Contributions/Justin Grice|Justin Grice]]||JGrice||JGrice|| [http://jagrice.blogspot.ca Justin's Blog]
|-
|[[User:Glaser King San Lo|Glaser King San]]||Lo|||B||[mailto:gklo@myseneca.ca?subject=oop344 gklo]||[[Special:Contributions/Glaser King San Lo|Glaser King San Lo]]||gklo||gklo|| [http://glpool.blogspot.ca Glaser's Pool]
|-
|[[User:Zhijian Zhou |Zhijian]]||Zhou|||B||[mailto:zzhou33@myseneca.ca?subject=oop344 zzhou33]||[[Special:Contributions/Zhijian Zhou|Zhijian Zhou]]||zzhou33||Gianzhou|| [http://opp344.blogspot.ca/ Zhijian's blog]
|-
|}