是春哥啊
来源:互联网 发布:tvb电视剧观看软件 编辑:程序博客网 时间:2024/06/05 15:55
</pre><p>/* *copyright(c) 2014,烟台大学计算机学院 *All rights reserved *文件名称:test.cpp *作者:吴雨凡 *版本:v6.0 * *问题描述:是春哥啊</p><p> *输入描述: *程序输出:判断相关问题*/</p><pre class="cpp" code_snippet_id="664922" snippet_file_name="blog_20150512_1_1684696" name="code">#include <iostream>#include <cstring>using namespace std;class Person{public: Person(char* s){ strcpy(name,s); } void display( ){ cout<<"Name: "<<name<<endl; }private: char name [20];};class Student:public Person{public: Student(char* s, int g):Person(s)
{grade=g;} void display1( ) { display();
cout<<"Grade: "<<grade<<endl; }private: int grade;};int main( ){ Student s("春哥",19); s.display1(); // (4) return 0;}
0 0
- 是春哥啊
- 是春哥啊
- 是春哥啊
- 是春哥啊
- 是春哥啊
- 是春哥啊
- 是春哥啊
- 11.0是春哥啊
- 【项目0 - 是春哥啊】
- 项目0:是春哥啊
- 第11周-是春哥啊
- 项目0 - 是春哥啊
- 第十一周项目-是春哥啊
- 第十周 【项目0 - 是春哥啊】
- 第十一周项目0是春哥啊
- 第十周项目零:是春哥啊
- 第十一周项目0 是春哥啊
- 第十一周项目一 是春哥啊
- 第六周-项目4武器类
- 数据库分库分表
- 排序函数模板(改)
- 排序函数模板
- 轮播图
- 是春哥啊
- 第九周-阅读程序1
- C++实验7——最大公约和最小公倍数
- 数据库分库分表
- imageloader
- 12个JavaScript技巧
- 网络协议_SNMP协议详解
- Asp.net学习记录6--Textbox的自动完成、自动补充功能呢
- MarkDown在typora上的学习