#include "person.h"
#include "dateType.h"
class personalInfo
{
public:
void setpersonalInfo(string first, string last,
int month, int day,
int year, int ID);
//Function to set the personal information.
//Data members are set according to the parameters
//Postcondition: firstName = first;
// lastName = last; dMonth = month;
// dDay = day; dYear = year; personID = ID;
void printpersonalInfo() const;
//Function to print the personal information.
personalInfoType(string first = " ", string last = " ",
int month = 1, int day = 1,
int year = 1900, int ID = 0);
//constructor
//Data members are set according to the parameters
//Postcondition: firstName = first;
// lastName = last; dMonth = month;
// dDay = day, dYear = year; personID = ID
private:
personType name;
dateType bDay;
int personID;
};
when I compile I get this error:
C:\Martin\MalikChapter2\clockInheritance\person\personalIntoType.cpp:19:34: error: ISO C++ forbids declaration of 'personalInfoType' with no type [-fpermissive]