摘要: 头文件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 阅读全文
posted @ 2013-04-25 13:08 蹦极的馒头 阅读(777) 评论(1) 推荐(1) 编辑