NJ5 said:
I said essentially a subset. There are very few things which work in C but not C++, and they're all small details which can be converted in one second. Those differences are not relevant for this thread, they're slight nitpicks as you can read here: http://www.research.att.com/~bs/bs_faq.html#C-is-subset Thus, C++ is as much a superset of ANSI C as ANSI C is a superset of K&R C and much as ISO C++ is a superset of C++ as it existed in 1985. Well written C tends to be legal C++ also.
You mentioned structures. C's structures are also supported in C++, in fact a class is just a souped-up structure which allows to use the public/private/protected keywords. You mentioned speed. C++ is not slower than C with equal code, only if you use a slower C++ feature (which you aren't forced to).
|
Thats not all, C++ has a more strick type check and some types on C wont compile on C++. and when i say speed i meant at low level of course, since thats mostly the main use of C now days. both support structures but only C++ supports classes and is object oriented.
dd if = /dev/brain | tail -f | grep games | nc -lnvvp 80
Hey Listen!







