任何关于C和C ++之间差异的快速参考 [英] Any quick reference for the difference between C and C++
问题描述
我一直在使用C ++而且我几乎忘记了C语言支持的语法是什么?b b支持什么语法通过C ++?我的感觉是C ++
为程序员提供了很大的灵活性。并且代码在C ++中比C更加本地化,这意味着更改在C ++代码中不会传播。通过内在和重载来重复使用
,可以节省很多代码。
但是由于某些原因我必须使用C语言。在C中是否有任何编程范例
,这可以给我提供尽可能多的C ++优势?是
那里有任何快速参考可以告诉我C ++语法是什么?/ b
禁止在C?
祝福,
彭
Hi,
I have been using C++ a lot and I''ve almost forgot what syntax is
support by C and what syntax is support by C++? My feeling is that C++
gives programmer much flexibility. And the code is more localized in
C++ than C, which mean changes won''t propogate far away in C++ code. By
reusing through inherence and overloading, a lot of code can be saved.
But I have to use C for some reason. Is there any programming paradigm
in C, which can give me as much advantage that C++ as possilbe? Is
there any quick reference which can tell me what C++ syntax is
forbidden in C?
Best wishes,
Peng
推荐答案
我是这里的新成员。
我害怕c ++,所以我选择了c。我的建议是
http://www.faqs.org/docs/ artu /
-
PS:我在clc的第一篇文章,是的! ;)
Hi, i am new member here.
I am afraid of c++, so i just chose c. my recommendation is
http://www.faqs.org/docs/artu/
--
PS: my 1st post on c.l.c, yay! ;)
" Pe ******* @ gmail.com"写道:
"Pe*******@gmail.com" wrote:
我一直在使用C ++而且我几乎忘记了C语言支持的语法是什么语法是否支持C ++?我的感觉是C ++为程序员提供了很大的灵活性。
我不知道是谁说的,但我同意这句话:
C为你提供足够的绳索来吊死自己。 C ++提供了一个
装备齐全的射击小队,最后一根烟和一个眼罩。
代码在C ++中比C更本地化,这意味着变化赢了用C ++代码远远地传播。
Hi,
I have been using C++ a lot and I''ve almost forgot what syntax is
support by C and what syntax is support by C++? My feeling is that C++
gives programmer much flexibility.
I don''t know who said it but I agree with this statement:
C offers you enough rope to hang yourself. C++ offers a
fully equipped firing squad, a last cigarette and a blindfold.
And the code is more localized in
C++ than C, which mean changes won''t propogate far away in C++ code.
我认为你在C上的这个jugdements基于C代码
你工作了一般而言,与C几乎没什么关系。
Erik
-
+ ------- -------------------------------------------------- - +
Erik de Castro Lopo no****@mega-nerd.com (是的,这是有效的)
+ --------------------------------- -------------------------- +
" Python解决了真正的伪代码'的两个主要缺点:它是
没有标准化,而且不可执行。
- 格兰特R.格里芬在comp.dsp
I think your jugdements on C here are based on the C code
you have worked on and have little to do with C in general.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo no****@mega-nerd.com (Yes it''s valid)
+-----------------------------------------------------------+
"Python addresses true pseudocode''s two major failings: that it
isn''t standardized, and it isn''t executable."
- Grant R. Griffin in comp.dsp
嗯,C和C ++都非常成功。选择哪一个取决于你的b $ b想要做。如果你喜欢做一些低级编程
喜欢我,C是一个更好的选择。如果你喜欢OOP,C ++可以更好
choice.Er,Java也是C系列语言之一,对吧?
Hmm,both C and C++ are very successful.Choosing which of them depends
on what you want to do.If you like to do some low-level programming
like me,C is a better choice.And if you like OOP,C++ can be a better
choice.Er,Java is also one of the C-family languages,right?
这篇关于任何关于C和C ++之间差异的快速参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!