复制构造函数copy constructor、赋值操作符 operator =、析构函数destructor:不管类是否定义了自己的析构函数,编译器都自动执行类中非static数据成员的析构函数。复制构造函数、赋值操作符、析构函数 总称为复制控制(copy control)。编译器自动实现这些操作,但类也可以定义自己的版本。下面代码所使用copy contructor的地方有:class Point{public: Point(){} Point(const Point & p){ static int i=0; cout<<++i<<"call Po Read More
posted @ 2011-10-03 11:50 庚武 Views(291) Comments(0) Diggs(0)
WxWindowsQuickRef快速引用:http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef#Frequently_Asked_Questions中文wxWidgets编译与简单测试http://hi.baidu.com/fcl06/blog/item/5233d8efbdaa763fadafd52f.html-------------------------------------------------------Execute the build command. The recommended command to Read More
posted @ 2011-10-03 00:35 庚武 Views(1058) Comments(0) Diggs(0)