第九周第一项目——阅读程序
来源:互联网 发布:手机erp软件 编辑:程序博客网 时间:2024/05/21 09:54
/**Copyright (c) 2016,烟台大学计算机学院*All rights reserved.*文件名称 :*作 者 : 田志伟*完成日期 : 2016年5月10号*版 本 号 : v1.0**问题描述 : 阅读程序,写出程序的运行结果并理解*输入描述 :*程序输出 : */#include <iostream>using namespace std;class A{public: A(){cout<<"A";} ~A(){cout<<"~A";}};class B{ A *p;public: B() { cout<<"B"; p=new A(); } ~B() { cout<<"~B"; delete p; }};int main(){ B obj; return 0;}
程序运行:
0 0
- 第九周第一项目——阅读程序
- 第十二周第一项目——阅读程序
- 第15周第一项目——阅读程序
- 第九周-程序阅读
- 第九周阅读程序
- 第十一周第一项目——又是程序阅读
- 第九周实践——阅读程序(1)
- 第九周实践——阅读程序(2)
- 第九周实践——阅读程序(3)
- 第九周实践——阅读程序(1)
- 第九周实践——阅读程序(2)
- 第九周实践——阅读程序(3)
- 第九周项目 00 阅读程序(1)
- 第九周项目 00 阅读程序(3)
- 第九周项目 00 阅读程序(4)
- 第九周项目1:阅读并理解程序(1)
- 第九周项目1:阅读并理解程序(2)
- 第九周项目1:阅读并理解程序(3)
- 图像特效---(Instagram)1977滤镜
- 使用github搭建博客
- [Spark优化]在Spark中使用Kryo序列化
- iOS开发之基础视图——UIButton
- Fedora 14 系统安装
- 第九周第一项目——阅读程序
- [SCU 4499] 表达式 (IDA*)
- [MZ test.16]P2 math 乘方e
- xxxxxxxxxxxx
- J - Convert QWERTY to Dvorak——ZOJ
- zabbix3.0.2 通过orabbix来监控oracle11g增强版的详细过程
- java操作redis数据库实例(redis集群)
- HUSTOJ 1023: 最大值和最小值
- 近景闲侃