C++ 中最常见的错误

发布于 2024-09-28 06:28:28 字数 252 浏览 0 评论 0原文

可能的重复:
我应该避免哪些 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听风吹 2024-10-05 06:28:28

各种方式的错误内存管理 - new 没有 deletedelete 错误的指针、不清楚指针的所有权以及导致的内存分配 /解除分配问题等

Wrong memory management in all kinds of ways - new without delete, delete on the wrong pointer, unclear ownership of a pointer with resulting memory allocation / deallocation problems etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文