Thursday, July 9, 2009

C++ classes problem?

Everytime I try to compile my Program. I get several error messages. The main problem seems to do with the following class and constructor.





class Person


{


private:


string firstname, lastname, homephone, mobilephone, email;


Address address;


Date birthdate;


public:


string getFirstName() { return firstname; }


string getLastName() { return lastname; }


void load(ifstream%26amp; infile);


void save(ofstream%26amp; outfile);


void enter();


void print();


bool isOutOfOrder(Person p, char field);


};





Struct Date


{


int month, day, year;


};





Struct Address


{


string street, city, state, zipcode;


};


No comments:

Post a Comment