06 2015 档案

emulation 与 simulation 的区别
摘要:You want to duplicate the behavior of an old HP calculator, there are two options:You write new program that draws the calculator's display and keys, ... 阅读全文

posted @ 2015-06-24 09:50 吴远征 阅读(854) 评论(0) 推荐(0)

C++类构造函数中的成员初始化
摘要:成员初始化列表,形式如下(在参数列表后面以冒号为起点,之后是一个初始化列表):Rectangle::Rectangle (int x, int y) : width(x), height(y) { } 关于构造函数、以及成员初始化列表的细节,见[1]。这里摘出比较关键的两段话:For members... 阅读全文

posted @ 2015-06-10 16:34 吴远征 阅读(1019) 评论(0) 推荐(0)