From 9a71e0a89d6d852f8a62ba946be761b925636ee9 Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Fri, 22 Apr 2016 19:08:06 -0700 Subject: [PATCH] README.md added - README.md added for the project - Person.cpp commented --- Person.cpp | 17 +++++++++++++---- README.md | 9 +++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 README.md diff --git a/Person.cpp b/Person.cpp index 9d3ddb4..cfa6585 100644 --- a/Person.cpp +++ b/Person.cpp @@ -1,7 +1,13 @@ +/* + * Written by : BinHong Lee + * Last edited : 4/22/2016 + */ + #include #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); } diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8e4c89 --- /dev/null +++ b/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.