真正的C / C ++ code很好的例子?建议需要 [英] excellent examples of real c/c++ code? Suggestions needed
问题描述
我想学习一些很好的C / C ++ code。在code应该:
I'd like to study some good c/c++ code. The code should:
- 在风格和结构,presenting最佳实践 好
- 是一个现实生活中的程序(不举例或玩具)
- 不是太大所以它并不需要年龄分析它
- Windows和/或Unix
我知道开源项目有1000个在那里。不过,我想听听你的建议。
I know there are 1000s of open source projects out there. But I'd like to hear your suggestions.
我是Java程序员,我很好奇,在C有多好项目/ C ++的结构(文件),类/功能/文件,文档/评论粒度,构建工具等。
I am Java programmer and I am curious how good project in c/c++ is structured (files), granularity of classes/functions/files, documentation/comments, build tools etc.
多建议是欢迎例如这是个好窗户的例子,这是好的纯C等。
Multiple suggestions are welcomed e.g. this is good windows example, that is good pure C etc.
推荐答案
我要特别提到的memcached 。这是一个很好的例子的相当短的,可读的code具有明确的目的性。
I would specifically mention memcached. It's a great example of fairly short, readable code with a clear purpose.
第二,我会建议 Apache Web服务器。这是,你会学到很多东西,从一个极其经营良好的开源项目,无论是关于语言,以及一般的设计实践和网络/线程。
Second, I would recommend the Apache web server. It's a fantastically well-run open source project that you'll learn a lot from, both about the language, as well as general design practices and networking/threading.
这篇关于真正的C / C ++ code很好的例子?建议需要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!