From 04ac2bebe8a7fee595183a7160e2142626e9ca50 Mon Sep 17 00:00:00 2001 From: BinHong Lee Date: Mon, 18 Apr 2016 13:41:00 -0700 Subject: [PATCH] Person Added Person class and header file. --- Person.cpp | 10 ++++++++++ Person.h | 14 ++++++++++++++ database.txt | 1 + 3 files changed, 25 insertions(+) create mode 100644 Person.cpp create mode 100644 Person.h diff --git a/Person.cpp b/Person.cpp new file mode 100644 index 0000000..461752b --- /dev/null +++ b/Person.cpp @@ -0,0 +1,10 @@ +#include +#include "Person.h" + +Person::Person(string name, string password, string email, string phoneNo) + { + this->name = name; + this->password = password; + this->email = email; + this->phoneNo = phoneNo; + } diff --git a/Person.h b/Person.h new file mode 100644 index 0000000..05a29a9 --- /dev/null +++ b/Person.h @@ -0,0 +1,14 @@ +#include +#include +using namespace std; + +class Person +{ + string name; + string password; + string email; + string phoneNo; + + public : + Person(string, string, string, string); +}; diff --git a/database.txt b/database.txt index 6a9adce..4fd04c9 100644 --- a/database.txt +++ b/database.txt @@ -1,3 +1,4 @@ binhonglee bhlee03655 binhonglee@hotmail.com +13479618886 +binhong binhong binhong@binhong.me +14802527013