您的位置:首页 > 其它

用指向基类对象的指针输出数据

2008-01-03 09:28 375 查看
#include "stdafx.h"#include<iostream>#include<string>using namespace std;class student{private: int num; int age; float score;public: student(int ,int ,float); void display();};//定义构造函数 student::student(int n,
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐