第五章
努力爱上代码的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 · 217 阅读 · 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 · 185 阅读 · 0 评论 -
第五章第十题
#include #include using namespace std; class Teacher //教师类 {public: Teacher(int,char [],char); //声明构造函数 void display(); /原创 2015-05-11 13:59:20 · 225 阅读 · 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 · 248 阅读 · 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 · 339 阅读 · 0 评论 -
第五章第三题
#include using namespace std; class Student //声明基类 {public: //基类公用成员 void get_value(); void display( ); protected : //基原创 2015-05-11 13:50:42 · 225 阅读 · 0 评论