Skip to content

The Software Engineering Project in NCTU, Fall 2016

Notifications You must be signed in to change notification settings

Casidi/SEProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEProject

The Software Engineering term project in fall 2016.

How to build

Required Files

Steps

  1. Extract mysql.zip to the project folder.
  2. Open the SEProject.sln with Visual Studio.
  3. Press F7 to build project.

About the code style

Naming

I only use two styles for all source files.

Style 1

For function names, variable names Code:

void thisIsTheFunction();
int thisIsTheVariable;

Style 2

For class names, struct names Code:

class ThisIsAClass;
struct ThisIsAStruct;

Indentation

There is no rules for indentation. The code below is just for reference.

#include <iostream>

using namespace std;

int countFactorial(int theInputNumber) {
  int result = 1;
  for(int i = 0; i < theInputNumber; ++i)
    result *= i + 1;
  return result;
}

int main(int argc, char* argv[]) {
  cout << "This is an example of ultra long line of text, or a long text segment." << endl
    << "It's recommended to seperate deferent lines in source codes." << endl
    << "This is the last line." << endl;
    
  int theMagic = 1234;
  switch(theMagic) {
  case firstCase:
    cout << "This is the first case." << endl;
    break;
  case secondCase:
    cout << "This is the second case." << endl;
    break;
  default:
    cout << "This is the default case." << endl;
    break;
  }
  
  return 0;
}

About

The Software Engineering Project in NCTU, Fall 2016

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages