C或C ++别的...... [英] C or C++ something else....
问题描述
感谢您的回答。
我已经了解Java编程,我正在开始学习
perl。我想学习C或C ++,但我需要有人告诉我
每个人的+和 - 。我注意到每台计算机都利用了
,几乎每个linux程序都是用C构建的,为什么会这样?因为
他们只知道使用C或C编程对于那种
程序更好,为什么?有人可以给出一个大项目的例子,你可以用C来实现你不能用C ++,反之亦然吗?也可以
有人建议我为他们两本书! (我不想要一些东西
for begginers我想要一些完整的书,因为它可以
,你需要知道编程语言的所有主题
。)很抱歉问题的数量,但我有点感到困惑。
再次感谢
-
--------------------------------- - - - -
发布于NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
----------------- - ----- ---- - -
Thanks for your answers.
I already know programming in Java and I am starting studying the
perl. I would like to learn C or C++ but I need someone to tell me
the + and - of each one. I have noticed that every computer exploit
and almost every linux program is builted in C why is that? Because
they just know to program in C or C is better for that kind of
programs and why? Can somebody give an example of big project that
you can achive with C and you cant with C++ or vice versa? Also can
somebody suggest me a book for both of them ! (I dont want something
for begginers i want something to be as much complete book as it can
be, with all the topics you need to know for a programming language
.)Sorry for the number of the questions but i am a little bit
confused.
Thanks one more time
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
推荐答案
Big-Goofy写道:
Big-Goofy wrote:
感谢您的回答。
我已经了解Java编程,我开始研究
perl。我想学习C或C ++,但我需要有人告诉我
每个人的+和 - 。
Thanks for your answers.
I already know programming in Java and I am starting studying the
perl. I would like to learn C or C++ but I need someone to tell me
the + and - of each one.
我希望你不会失明,应该看到C ++中的两个优点......我
看不到任何那里有缺点,对吗? C也没有任何缺点。
它没有任何优点,就是全部。
I hope you''re not blind and should see the two pluses in C++... I
don''t see any minuses there, do you? Neither does C have any minuses.
It just doesn''t have any pluses, that''s all.
我注意到了每台计算机都利用
I have noticed that every computer exploit
那是你想要进入的吗?
Is that what you''re trying to get into?
和几乎每个linux程序都是用C构建的,为什么会这样?因为
他们只知道使用C或C编程对于那种
程序更好,为什么?有人可以给出一个大项目的例子,你可以用C来实现你不能用C ++,反之亦然吗?
and almost every linux program is builted in C why is that? Because
they just know to program in C or C is better for that kind of
programs and why? Can somebody give an example of big project that
you can achive with C and you cant with C++ or vice versa?
找到Bjarne Stroustrup'的主页并阅读所有内容。
Find Bjarne Stroustrup''s home page and read all of it.
也可以
有人建议我为他们两本书! (我不想要一些东西
for begginers我想要一些完整的书,因为它可以
,你需要知道编程语言的所有主题
。)很抱歉问题的数量,但我有点
困惑。
Also can
somebody suggest me a book for both of them ! (I dont want something
for begginers i want something to be as much complete book as it can
be, with all the topics you need to know for a programming language
.)Sorry for the number of the questions but i am a little bit
confused.
只需谷歌提供图书建议。它已经变老了。告诉我们
您已准备好学习其中一种语言,只需申请一些
来收集信息。
V
-
请在通过电子邮件回复时删除资金''A'
我不回复热门帖子回复,请不要问
Just Google for book suggestions. It''s getting really old. Show us
that you''re ready to learn either of the languages by applyting some
effort to collecting information.
V
--
Please remove capital ''A''s when replying by e-mail
I do not respond to top-posted replies, please don''t ask
Big-Goofy写道:
Big-Goofy wrote:
我已经知道Java编程我开始研究
perl。
I already know programming in Java and I am starting studying the
perl.
我已经使用Perl多年了,并且得出结论,其作者,
Larry Wall,必须非常快,准确打字员。
下载Ruby,看看语言是如何干净优雅的!
I have used Perl for years, and come to the conclusion that its author,
Larry Wall, must be a very fast, accurate typist.
Download Ruby to see how clean and elegant a language can get!
我想学C或者C ++但是我需要有人告诉我
每个人的+和 - 。我注意到每台计算机都利用了
,几乎每个linux程序都是用C构建的,为什么会这样?
I would like to learn C or C++ but I need someone to tell me
the + and - of each one. I have noticed that every computer exploit
and almost every linux program is builted in C why is that?
粗略地说,C更老,更标准,因此它有更大的价值。
建立遗留代码语料库。包括Linux。通过更标准我的意思是
更多符合标准的代码已被编写为更符合标准的编译器而不是C ++。
(我怀疑我们仍然没有一个符合标准的编译器,尽管已经批准了标准的近十年了。而且我怀疑委员会
正在升级这个标准才达到要求!)
入门级程序员不必担心任何问题。首先学习C ++
,并学习足够的C来诊断和调试它。学习C ++作为
高级语言,从std :: string等功能开始。然后学习像
这样的东西,比如strlen(),这样就可以避免这些麻烦。
Roughly speaking, C is older and more Standard, so it has a much bigger
establish corpus of legacy code. Including Linux. By "more Standard" I mean
that more Standard-compliant code has been written to work in more
Standard-compliant compilers than C++.
(I suspect we still don''t have a standard-conforming compiler, despite
almost a decade of a ratified Standard. And I suspect that the committees
are upgrading this Standard before it even achieves compliance!!)
Entry level programmers don''t need to worry about any of that. Learn C++
first, and learn enough C to diagnose and debug it. Learn C++ as a
high-level language, starting with features like std::string. Then learn C
things like strlen(), so you can avoid the troubles these cause.
因为
他们只知道使用C或C编程对于那种
程序更好,为什么?
Because
they just know to program in C or C is better for that kind of
programs and why?
你可以用C语言做的任何事情,你可以用同样的方式,用更好的类型安全
和更多的便利,用C ++。 />
你几乎可以在C中做任何事情,你可以在C ++中使用Object
Oriented,Generic和类似的范例做得更好。
你唯一不能做的就是优化的最后一步。内核
就像Linux需要的那样(而且你_don''t_),所以他们必须使用C风格的代码。 C ++
可以编译C风格的代码,所以他们仍然不需要C.
大多数C代码可以调整为用C ++编译。但是Linux不应该编译为C ++ ++,因为Linux可以在多种CPU硬件上运行,而其中一些不需要C ++编译器。只有没有C ++编译器的情况才严格需要C.
Anything you can do in C, you can do the same way, with better typesafety
and more conveniences, in C++.
Almost anything you can do in C, you can do better in C++ using Object
Oriented, Generic, and similar paradigms.
The only thing you can''t do is the very last step of optimization. Kernels
like Linux''s need that (and you _don''t_), so they must use C-style code. C++
can compile C-style code, so they still don''t need C.
Most C code can be tweaked to compile in C++. But Linux shouldn''t compile as
C++ because Linux works on many kinds of CPU hardware, and some of them
don''t have C++ compilers. Only situations without a C++ compiler strictly
need C.
有人能给出一个大项目的例子
你可以用C来实现你不能用C ++,反之亦然?
Can somebody give an example of big project that
you can achive with C and you cant with C++ or vice versa?
C ++对于非常大的项目更好,因为它允许你比C更好地创建
模块和组件.C对<的支持较差
封装,这是防止错误的一种很好的高级技术。
C++ is better for very large projects because it allows you to create
modules and components better than C. C has poorer support for
encapsulation, which is a good high-level technique to prevent bugs.
也可以
有人建议我一本书给他们两个! (我不想要一些东西
for begginers我想要一些完整的书,因为它可以
,你需要知道编程语言的所有主题
。)
Also can
somebody suggest me a book for both of them ! (I dont want something
for begginers i want something to be as much complete book as it can
be, with all the topics you need to know for a programming language
.)
提示:今天的大多数编程都不应该是C语言。它应该是一种软快速语言(如Ruby或Python),你不需要
一直重新发明轮子。
要继续使用C ++,请阅读/ C ++编程语言,第3版/
Bjarne Stroustrup。它符合完整的要求。请求现场。
-
Phlip
http://www.greencheese.us/ZeekLand < - 不是博客!!!
Tip: Most programming today should not be in a C language at all. It should
be in a soft rapid language (like Ruby or Python) where you don''t need to
reinvent the wheel all the time.
To proceed in C++, read /The C++ Programming Language, 3rd Edition/ by
Bjarne Stroustrup. It fits the "complete" spot you requested.
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Phlip写道:
Phlip wrote :
粗略地说,C更老,更标准,所以它有更大的
建立遗留代码语料库。包括Linux。通过更标准我的意思是
更多符合标准的代码已被编写为更符合标准兼容的编译器而不是C ++。
Roughly speaking, C is older and more Standard, so it has a much bigger
establish corpus of legacy code. Including Linux. By "more Standard" I mean
that more Standard-compliant code has been written to work in more
Standard-compliant compilers than C++.
AFAIK,只有一个前端符合最新的C
标准,就像C ++一样。
实际上它是一样的。
AFAIK, there is only one frontend which is compliant to the latest C
standard, just like for C++.
And it''s the same one, actually.
唯一不能做的就是优化的最后一步。内核
就像Linux需要的那样(而且你_don''t_),所以他们必须使用C风格的代码。 C ++
可以编译C风格的代码,所以他们仍然不需要C.
The only thing you can''t do is the very last step of optimization. Kernels
like Linux''s need that (and you _don''t_), so they must use C-style code. C++
can compile C-style code, so they still don''t need C.
不是真的。
许多值得注意的C ++特性不仅在内核中可以接受,而且还可以提高其性能并改进其设计。
Not really.
A lot of notable C++ features are not only acceptable in a kernel but
can also boost its performance and improve its design.
>
这篇关于C或C ++别的......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!