正在加载图片...
∥例8.12使用深拷贝,复制对象不会有运行错误 #include<iostream> using namespace std; class student public student(int, char,k, int, float) student(student & -studento oid printstu 0: private int id char* name int age; float score1 //例8.12 使用深拷贝,复制对象不会有运行错误 #include<iostream> using namespace std; class student {public: student(int,char*,int,float); student(student&); ~student(); void printstu(); private: int id; char* name; int age; float score; };
向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有