给出下面的人员基类框架: class Person { protected: string name; int age; public: Person(); Person (string p_name, int p_age); void display () {cout<<name<<“:”<<age<<endl;} }; 建立一个派生类student,增加以下成员数据: int ID;//学号 float cpp_score;//cpp上机成绩 float
有些题做得可能比较傻,有好方法,或者有错误还请告诉我,多多指教=.= 思路比较好的题目我都有讲的很详细. 剩下三道题有待优化,等改好了再上传. 标题 题目链接 解题链接 1001 害死人不偿命的(3n+1)猜想 (15) Do it 提示 1002 写出这个数 (20) Do it 提示 1003 我要通过!(20) Do it 提示 1004 成绩排名 (20) Do it 提示 1005 继续(3n+1)猜想 (25) Do it 提示 1006 换个格式输出整数 (15) Do it