16.2
来源:互联网 发布:python 3 try except 编辑:程序博客网 时间:2024/06/08 15:34
/* C++ДњТы */#include <iostream>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: "<<sex<<endl; }private : int num; string name; char sex;};/* C++ДњТы */class Student1:private Student{ public: void get_value1() { Student::get_value(); cin>>age>>addr; } void display1( ) { Student::display(); cout<<"age: "<<age<<endl; cout<<"address: "<<addr<<endl; } private: int age; string addr;};int main(){ Student1 stud1; stud1.get_value1(); stud1.display1(); return 0;}
0 0
- 16.2
- 16.2
- 16.2
- 16.2
- 16.2-5
- 16.2 vector
- 16.2.1
- 16.2.2
- primer4 16.2
- 16.2 Namespace declarations
- 16.2 准备 TSPITR
- 检测点16.2
- Allegro 16.2 DiffPair设置
- 算法导论-16.2-6
- 算法导论16.2-6
- 16.2 调色板动画
- 16.2节练习
- 16.2 函数式接口
- [ffmpeg] clip video & audio
- 黑马程序员___集合1
- python函数注意事项-参数的改变
- 快速枚举
- 一步一步写makefile
- 16.2
- 金正康健公司面试题
- 网络体系结构
- cxf + spring 的WS-Security示例(二)
- TCP和UDP的"保护消息边界" 机制
- OpenCV 机器学习之 支持向量机的用法实例
- Webdnpro For Java调用BAPI方式(1) 建立Model
- NLP | 自然语言处理 - 语言模型(Language Modeling)
- 根据Axis2官网的快速入门英文文档总结