Changes

Jump to: navigation, search

Team I - OOP344 20133

121 bytes removed, 05:58, 8 December 2013
no edit summary
== Repository ==
* '''Team Infinity''' Repo Path: https://github.com/Seneca-OOP344/Team-I
 
== Coding Style and Standards ==
* The following will serve as an example of our coding standard:
<big><syntaxhighlight lang="cpp">
#ifndef __TEAMINFINITY_FILENAME_H__ // Our Team's Safeguard
#define __TEAMINFINITY_FILENAME_H__
 
 
class example { // There will be a space after every class identifier for the definition
public:
int _data; // Member variables should start with an underscore
int _arraySize // Use meaningful names for variables when applicable and use lower Camel Case
int _width; // Every object have its own type
char* _pArray; // Pointers should have * part of the type
void display():
};
 
void example::display() { // There will be a space after every function identifier for the definition
}
 
#endif
 
...
 
#include <iostream>
#include <cstring>
using namespace std;
 
int main() {
int a = 0; // Indentation is 2 spaces
int b = 1; // NO Tab characters allowed! Replace every tab character with 2 spaces.
char name[] = "Spoom";
// Put a newline after variable declaration
if(a > b ? a : b) {
a = a * b; // Put a space between EVERY variable and operator
}
// Put a newline after a control structure
if(!strcmp(name, "Spoom")) {
cout << "Welcome, Spoom!" << endl; // Every statement within a control structure will
} // be wrapped in braces, even if there is only 1 line
else { // Else statement will be on a newline after the If control structure
cout << "Get out." << endl;
}
 
return 0;
}
Courtesy:Team B
</syntaxhighlight></big>
== Team Members ==
#* Push the final changes to github
== meetings Coding Style and Standards ==* latest The following will serve as an example of our coding standard:<big><syntaxhighlight lang="cpp">#ifndef __TEAMINFINITY_FILENAME_H__ // Our Team's Safeguard#define __TEAMINFINITY_FILENAME_H__  class example { // There will be on topa space after every class identifier for the definition public: int _data; // Member variables should start with an underscore int _arraySize // Use meaningful names for variables when applicable and use lower Camel Case int _width; // Every object have its own type char* _pArray; // Pointers should have * part of the type void display():}; void example::display() { // There will be a space after every function identifier for the definition } #endif ... #include <iostream>#include <cstring>using namespace std; int main() { int a =0; // Indentation is 2 spaces int b =1; // NO Tab characters allowed! Replace every tab character with 2 spaces. char name[] = topic, date =="Spoom"; // Put a newline after variable declaration if(a > b ? a : b) { a = a * b; // Put a space between EVERY variable and operator } // Put a newline after a control structure[[Irc logs of meeting if(!strcmp(unique name, "Spoom") - oop344 20113 | date]]) { cout << "Welcome, Spoom!" << endl; // Every statement within a control structure will } // be wrapped in braces, even if there is only 1 line else { // Else statement will be on a newline after the If control structure cout << "Get out." << endl; }  return 0;}Courtesy:Team B</syntaxhighlight></big>

Navigation menu