摘要: 本文涉及对象的赋值和复制(也称为克隆)。必要时,先看谭浩强教材P291-295的相关内容或PPT,重温一下有关概念。 一、一般情况 先看一个例子://例程1#include using namespace std;class Complex{public: Complex(){real=0... 阅读全文
posted @ 2014-04-26 21:24 wiessharling 阅读(1296) 评论(0) 推荐(0)
摘要: 一、系统跟踪类Trace的设计过程:step1:简单版class Trace {public: Trace() { noisy = 0; } void print(char* s) { if(noisy) print("... 阅读全文
posted @ 2014-04-26 19:56 wiessharling 阅读(267) 评论(0) 推荐(0)
摘要: 打开【百度首页】,依次输入以下内容:【你想要搜索的网盘文件关键词】+【site:pan.baidu.com】,然后按一下“百度一下”就万事大吉了!例如:C++site:pan.baidu.com 阅读全文
posted @ 2014-04-26 17:35 wiessharling 阅读(308) 评论(0) 推荐(0)