//*********************************************** //in this test I use object's run-time allocation //with initialization //*********************************************** #include #include #include using namespace std; //------------------------------------------------ class id{ char name[10]; char surname[10]; public: id(char *na){strcpy(name,na);} ~id(){cout<<"Deleting id....\n";} void setid(char *sur){strcpy(surname,sur);} void show(){ cout<<"your id's......"; cout<>value; p->setid(value); p->show(); delete p; return 0; }