我正在学习C,有人可以节目吗? [英] I am learning C, can any one show a programme?

查看:88
本文介绍了我正在学习C,有人可以节目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,请发布任何内容,如果您知道...

Hi, please post anything guys, if you know...

推荐答案

买一本关于C的好书,然后通读它.解决练习并尝试编写不同的程序.

某个互联网论坛上的人员无法教您完整的编程语言-尽管他们可以帮助您解决特定的查询.
Buy a good book on C, and read through it. Solve the exercises and try to write different programs.

People on some internet forum cannot teach you an entire programming language - they may help you with solving specific queries though.


int main()
{
   return 0;
}




为什么要学习C?没有人真正使用过它,并且它的工作方式与任何现代语言(例如C ++或C#)都不一致.




Why are you learning C ? No-one really uses it, and the way it works is at odds with any modern language, like C++ or C#.


* grin *当然仍然使用,但没有使用而不是人们在这里展示的那种勇敢的学习方法.我的观点不仅仅是C的范例在C ++编程上创造了不止一次的可怕尝试,我主张提倡先学习C ++,然后再回过头去找出哪些位是C(因此,在C ++中几乎应该避免使用).

[补充:在C ++之前学习C]
我认识的每个人,首先教过C的人教过C ++,或者也认识C的人,都不知道如何正确地使用C ++,而是使用C文件句柄,C字符串处理等.学习C可以教您许多事情在C ++中都有效,但是您绝对不应该这样做.它教人们如何糟糕地使用C ++.我敢肯定有些人没有做到这一点,这是我见过的大多数人.
*grin* of course it''s still used, but not widely, and not by people with the sort of cavalier approach to learning exhibited here. My point was more that the paradigms of C have created more than one terrible attempt at C++ programming, and I''d advocate learning C++ first, THEN going back and finding out which bits are C( and should therefore almost always be avoided in C++ ).

[added re: learning C before C++]
every person I''ve known who was taught C++ by someone who taught them C first, or who knew C too, had no idea how to use C++ properly, instead using C file handles, C string handling, etc. Learning C teaches you a lot of things that work in C++, but that you should never do. It teaches people how to use C++ badly. I''m sure some people rise above that, most I''ve met, did not.


这篇关于我正在学习C,有人可以节目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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