第6周项目-程序阅读5
来源:互联网 发布:2016网络歌曲合集下载 编辑:程序博客网 时间:2024/04/30 02:11
#include <iostream>using namespace std;class AA{public: AA(int i,int j) { A=i; B=j; cout<<"Constructor\n"; } AA(AA &obj) { A=obj.A+1; B=obj.B+2; cout<<"Copy_Constructor\n"; } ~AA() { cout<<"Destructor\n"; } void print() { cout<<"A="<<A<<",B="<<B<<endl; }private: int A,B;};int main(){ AA a1(2,3); AA a2(a1); a2.print(); AA *pa=new AA(5,6); pa->print(); delete pa; return 0;}
0 0
- 第6周项目-程序阅读5
- 第6周项目程序阅读2
- 第6周项目程序阅读3
- 第6周项目程序阅读4
- 第13周项目 程序阅读(6)
- 第5周项目--程序阅读
- 第5周项目--程序阅读
- 第5周-项目0-阅读程序
- 第13周项目 程序阅读(5)
- 第14周项目6-阅读程序(10,11)
- 第12周项目一 程序阅读题(5)
- 第12周项目1-程序阅读(5)
- 第12周 项目1-阅读程序(5)
- 第12周项目—阅读程序5
- 第16周项目——阅读程序5
- 第12周项目 1.1 阅读程序
- 第15周项目2-阅读程序
- 第15周项目2.1 阅读程序
- ubuntu 安装 logger
- JAVA常用的util工具类
- RecyclerView,SwipeRefreshLayout,CardView最新控件的使用
- (转)android 小知识
- 家装旺季莫错过 熟记墙面装修流程
- 第6周项目-程序阅读5
- IOS开发中常用的 宏命令整理
- BZoj 1293 生日礼物(小顶堆)
- IE,FF下getElementsByName无效
- 获取指定目录下的文件名列表
- Add Binary
- Android获取手机号码
- Android中多次点击控件问题
- Aspose.Cells Excel删除行