
C++
IT_大仙
Android应用开发
展开
-
最快速度找到内存泄漏
1. 确认是否存在内存泄漏 MFC程序如果检测到存在内存泄漏,退出程序的时候会在调试窗口提醒内存泄漏。例如: class CMyApp : public CWinApp { public: BOOL InitApplication() { int* leak = new int[10]; return TRUE;转载 2015-10-20 14:21:30 · 402 阅读 · 0 评论 -
#、##、...和__VA_ARGS__
1. ...和__VA_ARGS__ 看看msdn上给得例子吧 [cpp] view plaincopyprint? #include #define EMPTY #define CHECK1(x, ...) if (!(x)) { printf(__VA_ARGS__); } #define CHECK2转载 2015-10-27 09:28:14 · 584 阅读 · 0 评论