Empty constructor for Person is being declared.Fixing-travis-yml
@@ -6,6 +6,7 @@ | |||||
#include <iostream> | #include <iostream> | ||||
#include <string> | #include <string> | ||||
#include <fstream> | #include <fstream> | ||||
#include "Person.cpp" | |||||
using namespace std; | using namespace std; | ||||
int getUsernameCounter(string, int); | int getUsernameCounter(string, int); | ||||
@@ -20,6 +21,7 @@ void chgPhoneNo(); | |||||
void quit(); | void quit(); | ||||
const int size = 10000; | const int size = 10000; | ||||
Person person[size]; | |||||
string username[size]; | string username[size]; | ||||
string password[size]; | string password[size]; | ||||
string email[size]; | string email[size]; | ||||
@@ -2,6 +2,14 @@ | |||||
#include "Person.h" | #include "Person.h" | ||||
using namespace std; | using namespace std; | ||||
Person::Person() | |||||
{ | |||||
name = "unknown"; | |||||
password = ""; | |||||
email = "unknown"; | |||||
phoneNo = "555-5555"; | |||||
} | |||||
Person::Person(string name, string password, string email, string phoneNo) | Person::Person(string name, string password, string email, string phoneNo) | ||||
{ | { | ||||
this->name = name; | this->name = name; | ||||
@@ -11,6 +11,7 @@ class Person | |||||
string phoneNo; | string phoneNo; | ||||
public : | public : | ||||
Person(); | |||||
Person(string, string, string, string); | Person(string, string, string, string); | ||||
void setName(string); | void setName(string); | ||||
string getName(); | string getName(); | ||||