如何提高C技能? [英] How to improve C skill?

查看:71
本文介绍了如何提高C技能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我刚刚读完了一些关于C的教程,我想知道我如何才能提高我的技能。有什么建议吗?正在阅读别人的代码

最好的方法吗?如果是这样,什么类型的代码适合新手?在fsf中的

释放了软件目录?我已经阅读了很多关于编程语言C的书,但是当我尝试自己创建一个

项目时,我发现自己无能为力。我该怎么办?

提前致谢。

Hi,

I have just finished reading some tutorials on C, I am wondering how I
could improve my skill. Is there any advice? Is reading others'' codes
the best way? If so, what type of codes are suitable for novice? The
ones in fsf freed software directory? I have been reading quite a few
books on the programming language C, but when I tried to start a
project of my own, I find myself to be incompetent. What should I do?
Thanks in advance.

推荐答案

我们******** @ gmail.com 写道:




我刚刚读完了关于C的一些教程,我想知道我如何才能提高我的技能。有什么建议吗?
Hi,

I have just finished reading some tutorials on C, I am wondering how I
could improve my skill. Is there any advice?



很多!

Plenty!


正在阅读其他人的代码

最好办法?如果是这样,什么类型的代码适合新手?
Is reading others'' codes
the best way? If so, what type of codes are suitable for novice?



此上下文中的代码是单数(代码而不是代码)。只需

阅读代码可能不是一个好主意。阅读资料来了解你知道如何运作更有效。


尝试K& R的练习,已经发布了大量的解决方案

这里可以看看你是否卡住了。

Code in this context is singular ("code" rather than "codes"). Just
reading code probably isn''t a good idea. Reading source to see how
something you know works is more effective.

Try the exercises in K&R, there have been plenty of solutions posted
here to look through if you get stuck.


我一直在读很多

关于编程的书籍语言C,但当我尝试开始自己的项目时,我发现自己无能为力。我该怎么办?
I have been reading quite a few
books on the programming language C, but when I tried to start a
project of my own, I find myself to be incompetent. What should I do?



开始简单!


-

Ian Collins。

Start simple!

--
Ian Collins.




< we ******** @ gmail.comwrote in message

news:11 ***** ****************@o5g2000hsb.googlegrou ps.com ...

<we********@gmail.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...




我刚刚读完了关于C的一些教程,我想知道我如何才能提高我的技能。有什么建议吗?正在阅读别人的代码

最好的方法吗?如果是这样,什么类型的代码适合新手?在fsf中的

释放了软件目录?我已经阅读了很多关于编程语言C的书,但是当我尝试自己创建一个

项目时,我发现自己无能为力。我该怎么办?

提前致谢。
Hi,

I have just finished reading some tutorials on C, I am wondering how I
could improve my skill. Is there any advice? Is reading others'' codes
the best way? If so, what type of codes are suitable for novice? The
ones in fsf freed software directory? I have been reading quite a few
books on the programming language C, but when I tried to start a
project of my own, I find myself to be incompetent. What should I do?
Thanks in advance.



尝试写小行星。

这是一个游戏,你在其中操作星号线之间的空间,

向下滚动控制台。您将需要curses / conio或其他

非标准标题来正确处理控制台。

它非常容易编写并且会给您一种成就感。你可以用你的b / b
来制作相当复杂的游戏。

首先确保你可以使用你的控制台库来定位角色

。随意。

-

免费游戏和编程好东西。
http://www.personal.leeds.ac.uk/~bgy1mm

Try writing "asteroids".
This is a game in which you manoevre a spacship between lines of asterisks,
which scroll down the console. You will need curses / conio or other
non-standard header to treat the console correctly.
It is very easy to write and will give you a sense of achievement. It you
put in levels and scores you can make quite a sophisticated game.
Start by making sure you can use your console library to position characters
at will.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm


we********@gmail.com 说:




我刚刚读完一些关于C的教程,我想知道我是怎么回事
可以提高我的技能。有什么建议吗?正在阅读别人的代码

最好的方法吗?
Hi,

I have just finished reading some tutorials on C, I am wondering how I
could improve my skill. Is there any advice? Is reading others'' codes
the best way?



将编译器的警告级别调高到最高,并且

写了很多很多程序。请记住,您的b / b
教程中的大部分内容可能都是错误的。大多数C教程都是由不知道的人写的。
。想想看,大多数C

代码。因此,在阅读其他人代码的同时,可以提供帮助,进入

的思维习惯,为什么这段代码不好?我不喜欢它吗?

它会导致我的编译器发出什么诊断消息?我能理解这些消息吗?关于代码我不懂什么

本身? *为什么*是作者做这样的?"

Crank up the warning level of your compiler as high as it will go, and
write lots and lots of programs. Remember that much of what your
tutorials taught you is likely to be wrong. Most C tutorials are
written by people who don''t know C. Come to think of it, so is most C
code. So, whilst "reading others'' code" can be helpful, get into the
habit of thinking "why is this code bad? What don''t I like about it?
What diagnostic messages does it cause my compiler to emit? Do I
understand those messages? What don''t I understand about the code
itself? *WHY* is the author doing such-and-such?"


我一直在阅读相当多的

关于编程的书籍语言C,但当我尝试开始自己的项目时,我发现自己无能为力。
I have been reading quite a few
books on the programming language C, but when I tried to start a
project of my own, I find myself to be incompetent.



诚实无处不在! :-)严肃地说,真正的能力(

*任何*值得追求的领域)需要大约十年的勤奋学习和

*练习*。十年才能成为一名称职的医生,律师,程序员,无论如何都要花钱。


设计一个你自己的项目 - 例如一个简单的文本处理器 -

定义你想做的N件事(其中N最初至少为4)。

实现这些功能,一个在一个时间,学习所有关于诊断

消息的信息!当你实现了所有N个功能时,请想一想另外的N / 4功能(向下舍入),并注意

适合它们的难度.Re -factor代码使得添加新功能更加愉快,现在你开始学习编程了。一旦

实现了所有5N / 4功能,让N = 5N / 4并再次绕圈,

直到你开始达到实际限制。这是一个具有

复仇功能的特征!但是它会轻轻地向你介绍大型程序。

Honesty will get you everywhere! :-) Seriously, true competence (in
*any* field worth pursuing) takes about ten years of diligent study and
*practice*. Ten years to be a competent doctor, lawyer, programmer,
whatever.

Devise a project of your very own - e.g. a simple text processor - and
define N things you''d like it to do (where N is initially at least 4).
Implement those features, one at a time, learning all about diagnostic
messages as you go! When you''ve implemented all N features, think up
another N/4 features (rounded down), and notice how awkward it is to
fit them in. Re-factor the code to make adding the new features much
more pleasant, and now you''re starting to learn about programming. Once
all 5N/4 features are implemented, let N = 5N/4 and go round again,
until you start to hit practical limits. This is feature creep with a
vengeance! But it will introduce you gently to large programs.


我该怎么办?
What should I do?



写C程序。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。

Write C programs.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


这篇关于如何提高C技能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆