Преглед на файлове

README.md added

- README.md added for the project
- Person.cpp commented
Fixing-travis-yml
BinHong Lee преди 8 години
родител
ревизия
9a71e0a89d
променени са 2 файла, в които са добавени 22 реда и са изтрити 4 реда
  1. +13
    -4
      Person.cpp
  2. +9
    -0
      README.md

+ 13
- 4
Person.cpp Целия файл

@@ -1,7 +1,13 @@
/*
* Written by : BinHong Lee
* Last edited : 4/22/2016
*/

#include <string>
#include "Person.h"
using namespace std;

//Empty constructor
Person::Person()
{
name = "unknown";
@@ -10,6 +16,7 @@ Person::Person()
phoneNo = "555-5555";
}

//Complete comstructor
Person::Person(string name, string password, string email, string phoneNo)
{
this->name = name;
@@ -18,6 +25,7 @@ Person::Person(string name, string password, string email, string phoneNo)
this->phoneNo = phoneNo;
}

//Getters and setters
void Person::setName(string name)
{
this->name = name;
@@ -43,12 +51,13 @@ void Person::setPhoneNo(string phoneNo)
this->phoneNo = phoneNo;
}

bool Person::checkPassword(string password)
void Person::setPassword(string password)
{
return (this->password == password);
this->password = password;
}

void Person::setPassword(string password)
//"password" do not have getter but only a checker instead
bool Person::checkPassword(string password)
{
this->password = password;
return (this->password == password);
}

+ 9
- 0
README.md Целия файл

@@ -0,0 +1,9 @@
## Bus Ticket Management System

This program is written solely on personal time with the purpose to pick up the C++ programming language once again after a long long time since I last wrote anything with it.

The original version of this program (as seen in the initial commit) was a version of my work years ago. I decided that starting from scratch might not be the best idea when it comes to a programming language that I haven't use for a long time. However, as years pass, there are different things that I've learn from other programming languages that I thought would be fun to see how that implementation works with C++ so it will eventually be very much different from what it was.

Thank you for your time in reading this. I sure hope someone would find this useful in someway someday.

BinHong Lee.

Зареждане…
Отказ
Запис