摘要:
c-cpp/学习笔记之IKM C++ 11 at main · haoran119/c-cpp (github.com) Q1. If most of the calls to function foo() below pass one of 10 particular values, which 阅读全文
摘要:
https://mp.weixin.qq.com/s/kEHQjmhNtSmV3MgHzw6YeQ 避免内存泄露 不再用到的内存没有释放,就叫做内存泄露 在C/C++中,通过动态内存分配函数(如malloc系统函数)或者new运算符分配的动态内存在使用完之后需要手动释放。否则会造成内存泄露。 建议: 阅读全文