随笔分类 -  C++

C++
摘要:最近在一个项目中,程序退出后都出现内存泄漏: 而且每次退出都是一样的.泄漏的内存块都是98500. 解决方法: 1. 在程序开始启动的地方(足够前的地方,只要在泄漏的内存分配的前面)使用代码: _CrtSetBreakAlloc(98500); //98500为上面内存泄漏的块号. 2. 然后deb 阅读全文
posted @ 2017-03-29 17:11 SmartMing 阅读(838) 评论(0) 推荐(0)
摘要:原文:http://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-and-int-const Read it backwards (as driven by C 阅读全文
posted @ 2017-03-15 15:19 SmartMing 阅读(145) 评论(0) 推荐(0)
摘要:Based on KindDragons answer I compiled Boost 1.63. For 64bit. Starting with Developer Command Prompt for VS 2017 RC Run: bootstrap.bat open project-co 阅读全文
posted @ 2017-03-02 17:55 SmartMing 阅读(3938) 评论(0) 推荐(0)