由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - C 和 C++ 相比有什么优点?
相关主题
C 和 C++ 相比有什么优点?abstraction vs encapsulation
Object Oriented Programming到底有什么好处?一些面向对象的基本问题
小白问题:如何能短时间内提高C++能力?面试OOD一般都考什么?
From C++ to C大家讨论一下程序员的三观是那三观?
C 和 C++ 相比有什么优点?一些oop的概念
大牛给介绍一下Objective C vs C++ 的优劣吧Static variables in function
JS就应该杜绝OOPnamespace 问题
Amazon第一轮电面面经what to do when converting c++ code to ansi C?
相关话题的讨论汇总
话题: c++话题: faster话题: 优点话题: 相比话题: func
进入Computation版参与讨论
1 (共1页)
s********1
发帖数: 581
1
C 和 C++ 相比有什么优点?
一般认为C++ 是 C 的 superset. C 有的功能 C++ 都有,而 C++ 多了Object-
oriented programming 和很多 library functions. 据说C 和 C++ 的速度也差不多。
那么C 还有什么优势吗?
s**i
发帖数: 381
2
portability
faster building time

【在 s********1 的大作中提到】
: C 和 C++ 相比有什么优点?
: 一般认为C++ 是 C 的 superset. C 有的功能 C++ 都有,而 C++ 多了Object-
: oriented programming 和很多 library functions. 据说C 和 C++ 的速度也差不多。
: 那么C 还有什么优势吗?

s********1
发帖数: 581
3
how about runtime? is C still faster than C++??

【在 s**i 的大作中提到】
: portability
: faster building time

M**8
发帖数: 25
4
For same quality C++ and C codes, I would say C is faster. Just like
Assembly will be faster than C. The features that are unique to C++ I can
think of are:
object oriented, Encapsulation, inheritance, polymorphism, exception
handling, class, templates, Function overloading, virtual func, new/delete
instead of malloc/free, namespace, type casting, overloading of operators,
inline func, pure virtual func, scope rule
In short, more powerful.
h***z
发帖数: 233
5
You can write C++ code that runs just as fast as C.

【在 s********1 的大作中提到】
: how about runtime? is C still faster than C++??
w***n
发帖数: 1137
6
for a specific code, it might be, but for a big complicate code, c may be
faster.
But for the current hardware, the difference is not too big.

【在 h***z 的大作中提到】
: You can write C++ code that runs just as fast as C.
1 (共1页)
进入Computation版参与讨论
相关主题
what to do when converting c++ code to ansi C?C 和 C++ 相比有什么优点?
Static variables in function大牛给介绍一下Objective C vs C++ 的优劣吧
其实有很多概念都是误导性的JS就应该杜绝OOP
面向对象技术Amazon第一轮电面面经
C 和 C++ 相比有什么优点?abstraction vs encapsulation
Object Oriented Programming到底有什么好处?一些面向对象的基本问题
小白问题:如何能短时间内提高C++能力?面试OOD一般都考什么?
From C++ to C大家讨论一下程序员的三观是那三观?
相关话题的讨论汇总
话题: c++话题: faster话题: 优点话题: 相比话题: func