C++ 中最常见的错误
可能的重复:
我应该避免哪些 C++ 陷阱?
C/ 中最常见的错误是什么您一直致力于或看到大多数人都在做的 C++ 编程?至少在潜意识中意识到这一点会增加我或任何人犯下这种行为的机会。
Possible Duplicate:
What C++ pitfalls should I avoid ?
What is the most common mistake in C/C++programming that you keep committing or see most of the people do? Being aware of it atleast subconsciously will increase my or anyone's chances of committing it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
各种方式的错误内存管理 -
new
没有delete
、delete
错误的指针、不清楚指针的所有权以及导致的内存分配 /解除分配问题等Wrong memory management in all kinds of ways -
new
withoutdelete
,delete
on the wrong pointer, unclear ownership of a pointer with resulting memory allocation / deallocation problems etc.