摘要:
头文件class student{public:student(char*);~student();student(const student &);char* name;static int num;};main.cpp文件intstudent::num=0;student::student(char*myname){num++;intlen=strlen(myname);name=newchar[len+1];strcpy(name,myname);cout<<name<<":创建,剩余个数:"<<num<<end 阅读全文