返回正常中文阅读
想对这篇译文“指手画脚”吗?
您的参与将有助于译者提高译文的质量;同时,大家一起对问题的讨论也是最佳的学习方式。还等什么?请现在就注册登录译言,开始眉批!
大错
小错
不顺
建议 How to learn C
So you want to learn the C programming language? Good for you! LearningC will be well worth your time. Here are five steps that you can followto learn C.
- Buy a C programming book. You could also use an online Cprogramming tutorial, but from my experience, books are better. The twobooks I would recommend are "C Primer Plus" by Prata and "The CProgramming Language" by Kernighan and Ritchie. They are both qualitybooks.
- Get a compiler. A compiler will allow you to turn your C codeinto a program that you can run on your computer. Windows users candownload VC++ 2005 or Code::Blocks. If you are using Linux you can use GCC, which most likely came with your distribution. If you are using OSX you can use Macintosh Programmer's Workshop.All of the compilers listed above are either free or Open Source.
- Write your first "Hello World" program. Many people decide to quitlearning C at this point. All you have to do is get over the hump ofyour first program, and everything follows naturally from there.
- Join the Open Source community and contribute to projects. You can find and join these projects at SourceForge. Helping out an Open source project can teach you much about programming and professional program structure.
- Continue learning. With every programming language, you arenever finished learning. Buy more advanced C programming books onalgorithms, and data structures.
如何学习C语言
你想学习C编程语言吗?太好了!C语言绝对值得你花时间去学。这里有可以遵循的学习C语言的五个步骤。1、买一本C编程的书。你也可以使用在线的C编程指南,但是依我的经验,书更好一点。我有两本书要推荐,Prata 的"C Primer Plus"和 Kernighan 与 Ritchie 合著的"The CProgramming Language"。它们都是有品质的书。
2、找一个编译器。编译器能把你写的C代码变成在电脑上运行的程序。微软视窗用户可以下载VC++ 2005 或 Code::Blocks。如果你使用Linux你可以使用GCC,大多数Linux发行版自带了它。如果你使用OSX你可以用Macintosh Programmer's Workshop。上面所列的所有编译器不是免费就是开源的。
3、写你的第一个"Hello World"程序。很多人学C的人在这一点上就决定放弃。你所要做的只是走出你第一个程序的阴影,然后从这里接下来的所有事情都会变得很自然。
4、加入开源社区,为一个项目做贡献。你可以在SourceForge找到和加入这些项目。帮助一个开源项目可以教会你很多关于编程和专业编程结构的知识。
5、持续学习。对每一个编程语言,你永远不能停止学习。买更多关于算法和数据结构的高级C编程书。

