1、#include#includeusing namespace std;class employeeprotected:char name15;char address10;char city10;int postcode;public:employee();/构造函数employee();/ 析构函数void setname(char *);char * getname();void display();void setadr(char *);void setcity(char *);void setpostcode(int post);char * getadr();char * getc
2、ity();int getpost();employee:employee()/默认构造employee:employee();void employee:setname(char *names)strcpy(name,names);char * employee:getname()return name;void employee:setadr(char *adr)strcpy(address,adr);void employee:setcity(char *ct)strcpy(city,ct);void employee:setpostcode(int post)postcode=post;int employee:getpost()return postcode;char * employee:getadr()return address;char * employee:getcity()return city;void employee:display()coutnamestr;empi.setname(namestr);coutadr; empi.setadr(adr);coutct; empi.setcity(ct);coutpost;empi.setpostcode(post);coutk;empk.display();