C和C ++ [英] C and C++

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

问题描述

我对C和C ++的密切关系有疑问。如果我是

正确C ++是OOP而C不是。现在OOP语言与b $ b和程序语言有多密切相关?了解C ++需要多少C知识?
?谢谢。

I have a question on how closely C and C++ are related. If i am
correct C++ is OOP while C is not. Now how closely can an OOP language
and a procedural language be related? How much knowledge of C is
required to understand C++? Thanks.

推荐答案

wilberX写道:
wilberX wrote:
我对C的接近程度有疑问和C ++是相关的。如果我是正确的C ++是OOP而C不是。现在,OOP语言和程序语言有多紧密相关?理解C ++需要多少C知识?谢谢。
I have a question on how closely C and C++ are related. If i am
correct C++ is OOP while C is not. Now how closely can an OOP language
and a procedural language be related? How much knowledge of C is
required to understand C++? Thanks.




您的目的是什么?


C ++是C,添加了几个关键字,只是一个删除了几个错误。


这些新关键字允许更好的OOP风格。人们永远在C

写了OOP;它只是更难了。


现在你先问一下OOP,然后再询问语言之间的区别

是什么。


-

Phlip
http:// www.greencheese.org/ZeekLand < - 不是博客!!!



To what purpose will you put the answer?

C++ is C with a few keywords added and just a couple bugs removed.

Those new keywords permit better OOP style. Folks have written OOP in C
since forever; it''s just harder.

Now you define OOP before asking what the difference between the languages
is.

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!


wilberX写道:
wilberX wrote:
我有一个关于C和C ++有多密切关系的问题。如果我是正确的C ++是OOP而C不是。现在,OOP语言和程序语言有多紧密相关?理解C ++需要多少C知识?谢谢。
I have a question on how closely C and C++ are related. If i am
correct C++ is OOP while C is not. Now how closely can an OOP language
and a procedural language be related? How much knowledge of C is
required to understand C++? Thanks.




从这里开始: http://public.research.att.com/~bs/bs_faq.html


V

- -

请在邮寄回复时从我的地址中删除资金



Start here: http://public.research.att.com/~bs/bs_faq.html

V
--
Please remove capital As from my address when replying by mail




" wilberX" <无线****** @ gmail.com>在消息中写道

news:11 ********************** @ i40g2000cwc.googlegr oups.com ...

"wilberX" <wi******@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
我对C和C ++的密切关系有疑问。


相当接近。

如果我是正确的C ++是OOP而C不是。


C ++有支持OOP的本机设备,

但这只是它支持的几种编程风格之一



现在OOP语言和程序语言有多紧密相关?


C ++不仅仅是一种OOP语言。人们也可以用它来编写程序代码。

C和C ++都可以被认为是''通用''

语言。


如何''关闭''C和C ++取决于你的概念

''close''。例如。一个的语法非常相似

到另一个的语法。但语义通常是不同的。

理解C ++需要多少C知识?


完全没有。

谢谢。
I have a question on how closely C and C++ are related.
Fairly closely.
If i am
correct C++ is OOP while C is not.
C++ has native facitilies which support OOP,
but that''s only one of several programming styles
it supports.
Now how closely can an OOP language
and a procedural language be related?
C++ isn''t *only* an OOP language. One can
write procedural code with it as well. Both
C and C++ can be considered ''general purpose''
languages.

How ''close'' C and C++ are depends upon your notion
of ''close''. E.g. the syntax of one is quite similar
to that of the other. But the semantics are often
different.
How much knowledge of C is
required to understand C++?
None at all.
Thanks.




欢迎您。


-Mike



You''re welcome.

-Mike


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

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