学习C语言的最佳地点是哪里?

时间:2022-05-11 11:58:31

I absolutely loved Dive Into Python when I picked up Python.

当我学习Python时,我绝对喜欢钻研Python。

In fact, "tutorials" such as Dive Into Python work really well for me; short brief syntax explanations, and plenty of examples to get things going.

事实上,“教程”(例如“跳水”Python)对我来说非常有用;简短的语法解释和大量的例子。

I learn really well via examples.

我通过例子学得很好。

I have programming experience in Java, Scheme, Python, PHP, Javascript, etc.

我有Java、Scheme、Python、PHP、Javascript等编程经验。

Is there anywhere you would recommend online to quickly pick up the C programming language, and best practices?

有什么地方你会推荐在线快速学习C编程语言和最佳实践吗?

9 个解决方案

#1


44  

The C Programming Language - Kernighan & Ritchie

C语言编程语言——Kernighan & Ritchie

#2


10  

CProgramming.com

CProgramming.com

is one of the best places to learn C is.

是学习C语言最好的地方之一。

It has clear and concise tutorials about

它有清晰简洁的教程

  • Basics of C ( loops , pointers recursion etc.)
  • C的基础知识(循环、指针递归等)
  • Data structures (linked lists,binary trees etc. )
  • 数据结构(链表、二叉树等)
  • OpenGL for graphics
  • OpenGL图形的
  • Tips and Tricks
  • 提示和技巧
  • Code Snippets
  • 代码片段
  • and even AI (neural networks)
  • 甚至是人工智能(神经网络)

They also have small Quiz at the end of each chapter.

每一章的结尾都有小测验。

The K & R is simply the best (but I guess you wanted some online tutorial).

K和R是最好的(但我猜你需要一些在线教程)。

#3


2  

Install an open source unix operating system. Use it. Tweak it. You'll be sitting on a mountain of C code organized into projects of all sizes, all easily available as source. if you don't make an effort to stay in the user category, you're bound to make incremental inroads into C and keep the learning process 100% practical.

安装一个开放源码的unix操作系统。使用它。调整它。您将坐在一堆C代码上,这些代码被组织成各种规模的项目,这些项目都很容易作为源代码获得。如果您不努力保持在用户类别中,您一定会逐步地进入C,并使学习过程100%的实用。

The great advantage of this approach is that, since programming techniques, code structure and alike are extremely volatile among project, you get to see very early what works in which circumstances. It may require more active participation (asking questions on mailing lists or programming sites) than following a course outlined by a book author, but you'll probably pick up some idioms useful in the real world earlier.

这种方法的最大优点是,由于编程技术、代码结构等在项目中非常不稳定,所以您可以很早就看到在哪种情况下有效。它可能需要更积极的参与(在邮件列表或编程网站上询问问题),而不是遵循书作者列出的课程,但是您可能会更早地学到一些在现实世界中有用的习语。

At least that's the way I got into C, and it was fun, relevant and rewarding every single minute (fun rhymes with frustrating, well, learning hurts).

至少我是这样进入C的,每一分钟都很有趣、相关、有意义(有趣和沮丧押韵,嗯,学习伤害)。

#4


1  

I might get flamed for this, but I learnt C using Dan Gookin's C for Dummies. The book is funny, well-written and very, very good. It's a bit short on "meaty stuff", so if you're already a programmer, it's probably too basic for you, but for the beginner, I have yet to see a book as good as this one.

我可能会因此而被激怒,但我学过用Dan Gookin的C做假人。这本书很有趣,写得很好,非常非常好。如果你已经是一个程序员,这对你来说可能太简单了,但是对于初学者来说,我还没有看到一本和这本一样好的书。

I learnt C from this book first, and followed that up with the K&R book already mentioned, which is also excellent, if a bit terse and dense.

我先从这本书中学习了C,接着又读了前面提到的K&R,这本书也很不错,虽然有点简洁,但也很紧凑。

#5


1  

I agree with the answers above and would like to add that by practicing you can learn a lot. write short codes, post questions, look at other people questions. it will help you a lot.

我同意上面的答案,我想补充一点,通过练习,你可以学到很多东西。这对你有很大的帮助。

#6


1  

An interesting place to learn C can be #C channel on irc.freenode.net . The community there helped me a lot taking my first steps, and feedback for your questions is usually "real-time".

学习C语言的一个有趣的地方是irc.freenode.net上的#C频道。那里的社区帮助我迈出了第一步,对你的问题的反馈通常是“实时的”。

#7


0  

I think the MAME source code is a good C code example to play with. It is available for many platforms, and contains all sorts of cool things to look at and learn from.

我认为MAME源代码是一个很好的C代码示例。它适用于许多平台,并且包含了各种可以查看和学习的很酷的东西。

So, get it, compile it, then play with it. Ultimately, you should try to fix a bug.

所以,获取它,编译它,然后使用它。最后,您应该尝试修复一个bug。

#8


0  

If you really want an online tutorial you can try http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/. It covers the basics and also points out some general C conventions.

如果你真的想要一个在线教程,你可以试试http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/。它涵盖了基本知识,并指出了一些通用的C约定。

That said, K&R is the Bible and if you are serious about learning C then it is almost mandatory reading.

也就是说,K&R是圣经,如果你认真学习C语言,那么它几乎是必读的。

#9


0  

When I learned C in the late 1980's I preferred Kochan's Programming in C (to K&R and a couple other lesser books). I see it's up to a third edition now, and there is a more recent version for Objective C.

当我在20世纪80年代晚期学习C语言时,我更喜欢Kochan的C语言编程(而不是K&R和其他一些小书)。我看到它已经是第三版了,还有一个更近期的Objective C版本。

#1


44  

The C Programming Language - Kernighan & Ritchie

C语言编程语言——Kernighan & Ritchie

#2


10  

CProgramming.com

CProgramming.com

is one of the best places to learn C is.

是学习C语言最好的地方之一。

It has clear and concise tutorials about

它有清晰简洁的教程

  • Basics of C ( loops , pointers recursion etc.)
  • C的基础知识(循环、指针递归等)
  • Data structures (linked lists,binary trees etc. )
  • 数据结构(链表、二叉树等)
  • OpenGL for graphics
  • OpenGL图形的
  • Tips and Tricks
  • 提示和技巧
  • Code Snippets
  • 代码片段
  • and even AI (neural networks)
  • 甚至是人工智能(神经网络)

They also have small Quiz at the end of each chapter.

每一章的结尾都有小测验。

The K & R is simply the best (but I guess you wanted some online tutorial).

K和R是最好的(但我猜你需要一些在线教程)。

#3


2  

Install an open source unix operating system. Use it. Tweak it. You'll be sitting on a mountain of C code organized into projects of all sizes, all easily available as source. if you don't make an effort to stay in the user category, you're bound to make incremental inroads into C and keep the learning process 100% practical.

安装一个开放源码的unix操作系统。使用它。调整它。您将坐在一堆C代码上,这些代码被组织成各种规模的项目,这些项目都很容易作为源代码获得。如果您不努力保持在用户类别中,您一定会逐步地进入C,并使学习过程100%的实用。

The great advantage of this approach is that, since programming techniques, code structure and alike are extremely volatile among project, you get to see very early what works in which circumstances. It may require more active participation (asking questions on mailing lists or programming sites) than following a course outlined by a book author, but you'll probably pick up some idioms useful in the real world earlier.

这种方法的最大优点是,由于编程技术、代码结构等在项目中非常不稳定,所以您可以很早就看到在哪种情况下有效。它可能需要更积极的参与(在邮件列表或编程网站上询问问题),而不是遵循书作者列出的课程,但是您可能会更早地学到一些在现实世界中有用的习语。

At least that's the way I got into C, and it was fun, relevant and rewarding every single minute (fun rhymes with frustrating, well, learning hurts).

至少我是这样进入C的,每一分钟都很有趣、相关、有意义(有趣和沮丧押韵,嗯,学习伤害)。

#4


1  

I might get flamed for this, but I learnt C using Dan Gookin's C for Dummies. The book is funny, well-written and very, very good. It's a bit short on "meaty stuff", so if you're already a programmer, it's probably too basic for you, but for the beginner, I have yet to see a book as good as this one.

我可能会因此而被激怒,但我学过用Dan Gookin的C做假人。这本书很有趣,写得很好,非常非常好。如果你已经是一个程序员,这对你来说可能太简单了,但是对于初学者来说,我还没有看到一本和这本一样好的书。

I learnt C from this book first, and followed that up with the K&R book already mentioned, which is also excellent, if a bit terse and dense.

我先从这本书中学习了C,接着又读了前面提到的K&R,这本书也很不错,虽然有点简洁,但也很紧凑。

#5


1  

I agree with the answers above and would like to add that by practicing you can learn a lot. write short codes, post questions, look at other people questions. it will help you a lot.

我同意上面的答案,我想补充一点,通过练习,你可以学到很多东西。这对你有很大的帮助。

#6


1  

An interesting place to learn C can be #C channel on irc.freenode.net . The community there helped me a lot taking my first steps, and feedback for your questions is usually "real-time".

学习C语言的一个有趣的地方是irc.freenode.net上的#C频道。那里的社区帮助我迈出了第一步,对你的问题的反馈通常是“实时的”。

#7


0  

I think the MAME source code is a good C code example to play with. It is available for many platforms, and contains all sorts of cool things to look at and learn from.

我认为MAME源代码是一个很好的C代码示例。它适用于许多平台,并且包含了各种可以查看和学习的很酷的东西。

So, get it, compile it, then play with it. Ultimately, you should try to fix a bug.

所以,获取它,编译它,然后使用它。最后,您应该尝试修复一个bug。

#8


0  

If you really want an online tutorial you can try http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/. It covers the basics and also points out some general C conventions.

如果你真的想要一个在线教程,你可以试试http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/。它涵盖了基本知识,并指出了一些通用的C约定。

That said, K&R is the Bible and if you are serious about learning C then it is almost mandatory reading.

也就是说,K&R是圣经,如果你认真学习C语言,那么它几乎是必读的。

#9


0  

When I learned C in the late 1980's I preferred Kochan's Programming in C (to K&R and a couple other lesser books). I see it's up to a third edition now, and there is a more recent version for Objective C.

当我在20世纪80年代晚期学习C语言时,我更喜欢Kochan的C语言编程(而不是K&R和其他一些小书)。我看到它已经是第三版了,还有一个更近期的Objective C版本。