阅读程序2
来源:互联网 发布:windows 守护进程 编辑:程序博客网 时间:2024/05/21 03:28
#include <iostream>using namespace std;class BASE{private: char c;public: BASE(char n):c(n){} virtual ~BASE(){cout<<c;}};class DERIVED:public BASE{ char c;public: DERIVED(char n):BASE(n+1),c(n){} ~DERIVED(){cout<<c;}};int main(){ DERIVED d('x'); return 0;}
0 0
- noip2012 阅读程序2
- 阅读程序(2)
- 11-阅读程序2
- 阅读程序2
- 程序阅读2
- 程序阅读2
- 程序阅读(2)
- 阅读程序1、2
- 补充阅读程序-2
- 阅读程序2
- 阅读程序2
- 阅读程序(2)
- 阅读程序2
- 阅读程序2
- 阅读程序2
- 阅读程序(2)
- 阅读程序(2)
- 阅读程序2
- 半边数据结构(The_Half-Edge_Data_Structure)
- 【C#】.NET技术的发展及其跨语言和跨平台特性
- 阅读程序1
- 经典算法和数据结构(四) 平衡查找树之B树
- SDUT 2075 最少拦截系统
- 阅读程序2
- flask + MongoDB 学习笔记 (-1): 个人用记录
- 阅读程序3
- JSONObject
- PHP审计-RIPS
- 阅读程序4
- android toolbar overflow icon color
- Javaweb乱码解决
- C#中的delegate和event