摘要:
mutalbe的中文意思是“可变的,易变的”,和C++中的const是对着用的。 在后置const的成员函数里。其他member变量不让改,但是mutable例外。VCZH给出的这个检查内存泄露的不错: 1 #define _CRTDBG_MAP_ALLOC 2 #include <stdlib.h> 3 #include <crtdbg.h> 4 #include <windows.h> 5 6 int wmain(vint argc , wchar_t* args[]) 7 { 8 // 这里运行程序,并在下面的函数调用之前delete掉所有new的东西 阅读全文
posted @ 2012-05-30 13:53
王叫兽_邢敏
阅读(287)
评论(0)
推荐(0)

浙公网安备 33010602011771号