我应该阅读哪些书籍/网站来学习编写可读且可维护的 C 代码?

发布于 2025-01-06 01:44:31 字数 443 浏览 0 评论 0原文

可能的重复:
权威 C 书籍指南和列表
优秀的 C++ 开源代码

我在 2 年前开始学习 C++。从那时起,我又回去学习了 C 等编程语言,但 C 是我最喜欢的。最近在查看开源项目时,我很快意识到我的代码很丑陋,几乎不可读,而且与可扩展性相反。我希望改变这一点。任何能够更好地帮助我更专业地用 C 语言编程的书籍、网站或其他资源的参考/链接将不胜感激。

谢谢

Possible Duplicate:
The Definitive C Book Guide and List
Good open source code for C++

I started learning C++ over 2 years ago. Since then, i went back and learned C, among other programming languages, but C is my favorite. While looking at open-source projects recently, i quickly realized that my code is ugly, barely readable, and the opposite of extendable. I want this to change. Any references/links to any books, websites, or other resources that would better help me program in C more professionally would be greatly appreciated.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

缺⑴份安定 2025-01-13 01:44:31

嗯,你说你了解 C,但提一下明确的指南也不错,它是 Dennis Ritchie 自己的书 C 编程语言。我听说过的另一本书是Stephen G Kochan 的 C 语言编程,尽管我自己还没有读过。

但在我看来,真正学习编写最佳代码的最佳方法就是尝试。做了很多项目,但都失败了。然后被迫在网络上搜索导致失败的原因或可能存在的错误,意识到您在一个错误上浪费了 2 天的时间,如果您遵循一些编程标准,这些错误本可以避免,然后从该经验中学习

Hmm you say you know C but it's not bad to mention the definite guide which is Dennis Ritchie's own book The C Programming Language. Another book I have heard good things about is Programming in C by Stephen G Kochan, even though I have not read it myself.

But in my opinion the best way to actually learn to write optimal code is to try it. Make many projects, and fail at doing so. Then be forced to search the net for what made you fail or what a bug might be, realize that you wasted 2 days over a bug that could have been avoided if you had followed some programming standards and then learn from that experience

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