Browse Source

Person

Added Person class and header file.
Fixing-travis-yml
BinHong Lee 8 years ago
parent
commit
04ac2bebe8
3 changed files with 25 additions and 0 deletions
  1. +10
    -0
      Person.cpp
  2. +14
    -0
      Person.h
  3. +1
    -0
      database.txt

+ 10
- 0
Person.cpp View File

@@ -0,0 +1,10 @@
#include <string>
#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;
}

+ 14
- 0
Person.h View File

@@ -0,0 +1,14 @@
#include <string>
#include <iostream>
using namespace std;

class Person
{
string name;
string password;
string email;
string phoneNo;

public :
Person(string, string, string, string);
};

+ 1
- 0
database.txt View File

@@ -1,3 +1,4 @@
binhonglee bhlee03655 binhonglee@hotmail.com +13479618886
binhong binhong binhong@binhong.me +14802527013

Loading…
Cancel
Save