哪个更好,C还是C ++? [英] Which is better, C or C++?

查看:87
本文介绍了哪个更好,C还是C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种更适合通用编程,C或C ++?我的朋友

说C ++,但我不确定。请赐教。谢谢!!!!!


PS我相信在comp.lang.c ++上的人们可以添加一些东西到这个上面。

Which is better for general-purpose programming, C or C++? My friend
says C++, but I''m not sure. Please enlighten me. Thanks!!!!!

PS I believe the folks over at comp.lang.c++ could add something to
this.

推荐答案

文章< 11 ********************** @ z14g2000cwz.googlegroups .com>,

Protoman< Pr ********** @ gmail.com>写道:
In article <11**********************@z14g2000cwz.googlegroups .com>,
Protoman <Pr**********@gmail.com> wrote:
哪个更适合通用编程,C或C ++?
Which is better for general-purpose programming, C or C++?




没有相当详细的定义它的含义

一种语言比另一种语言更好,没有

a相当详细的定义''通用编程''

是的,那么这个问题根本就不值得讨论。


如果有人要提供这些条款的详细定义,那么问题就是不要讨论

这里在comp.lang.c。

-

那时候我还很年轻,但我当时也很朦胧。

- 克里斯托弗牧师



Without a fairly detailed definition of what it means
for one language to be ''better'' than another, and without
a fairly detailed definition of what ''general-purpose programming''
is, then the matter simply isn''t worth discussing.

And if someone were to supply detailed definitions of either
of those terms, the matter would not be something to discuss
here in comp.lang.c .
--
I was very young in those days, but I was also rather dim.
-- Christopher Priest


好的,让我来定义通用编程


通用编程:在计算机软件中,通用的

编程语言是一种编程语言,用于编写

写入软件广泛应用领域的软件。在很多方面

a通用语言只有这种状态,因为它没有

包含旨在用于特定的

应用程序的语言结构域(例如,页面描述语言包含构造

旨在使编写控制

文本和图形在页面上的布局的程序更容易)。




OK, let me define "general purpose programming"

General Purpose Programming: In computer software a general-purpose
programming language is a programming language designed to be used for
writing software in a wide variaty of application domains. In many ways
a general-purpose language only has this status because it does not
include language constructs designed to be used within a specific
application domain (eg, a page description language contains constructs
intended to make it easier to write programs that control the layout of
text and graphics on a page).

And


" Protoman" <镨********** @ gmail.com>写道:
"Protoman" <Pr**********@gmail.com> writes:
哪种更适合通用编程,C或C ++?我的朋友说C ++,但我不确定。请赐教。谢谢!!!!!


这是comp.lang.c.我们在这里不讨论C ++。

PS我相信comp.lang.c ++上的人们可以添加一些东西到这个。
Which is better for general-purpose programming, C or C++? My friend
says C++, but I''m not sure. Please enlighten me. Thanks!!!!!
This is comp.lang.c. We don''t discuss C++ here.
PS I believe the folks over at comp.lang.c++ could add something to
this.



我对此表示怀疑。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *> < http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。



I doubt it.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


这篇关于哪个更好,C还是C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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