/* File Name : AddMain.cpp Course Number : ISYS 291 01 Student Name : Jason Gradziel Student Number : 826-135-535 Professors Name : Brian Perry Lab Title : */ /* Address class main function addmain.cpp */ #include /*cout*/ #include "Address.h" void clrscr(void); void pause(void); char* Get_Address_Data(void); int main(void) { char* p = NULL; int err = 0; Address name; /*create var name from Address*/ clrscr(); /* clear screen*/ p = Get_Address_Data(); /* get data */ err = name.update(p); /* updata data onto object */ if (err != 0) cout << "An error has occured in your input" << endl; p = name.display(); /* format data for output */ cout << endl << "Data from Address Class" << endl << p << endl; pause(); p = name.mailLabel(); /* format data for mailing label output */ cout << endl << "Data from Address Class from Mailing Label" << endl << p << endl; pause(); return 0; }