谢卓飞-1120231828.zip
立即下载
资源介绍:
谢卓飞-1120231828.zip
#include "head.h"
#include
using namespace std;
int main(){
Student stu1(20,"111",'f');
Student1 stu2(19,1120231828,"谢卓飞",'m');
Student *pt = &stu1; //虚函数的实现
pt -> display();
cout << endl;
pt = &stu2;
pt -> display();
system("pause");
return 0;
}