![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
第五章
努力爱上代码的boy
这个作者很懒,什么都没留下…
展开
-
第五章第二题
#include using namespace std;class Student{public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex: "<原创 2015-05-11 13:47:13 · 221 阅读 · 0 评论 -
第五章第九题
#include#include using namespace std;class Teacher {public: Teacher(string nam,int a,char s,string tit,string ad,string t); void display(); protected: string name; int age; cha原创 2015-05-11 13:54:58 · 191 阅读 · 0 评论 -
第五章第十题
#include #include using namespace std;class Teacher //教师类 {public: Teacher(int,char [],char); //声明构造函数 void display(); /原创 2015-05-11 13:59:20 · 227 阅读 · 0 评论 -
data time
#include "iostream"using std::cin;using std::cout;using std::endl;using std::istream;using std::ostream;class Time{protected: int hour; int minute; int second;public: Time(int h =原创 2015-05-11 13:15:48 · 251 阅读 · 0 评论 -
第五章第一题
#include using namespace std;class Student{public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex: "<原创 2015-05-11 13:44:00 · 344 阅读 · 0 评论 -
第五章第三题
#include using namespace std;class Student //声明基类{public: //基类公用成员 void get_value(); void display( ); protected : //基原创 2015-05-11 13:50:42 · 229 阅读 · 0 评论