May I ask, what are the difference of C and C++? Do they both codes? Can I use C codes to C++? How about Vice Versa? Is C same as Clanguage?
Difference of C and C++
Page 1 of 13 Replies - 406 Views - Last Post: 01 October 2008 - 09:00 PM
Replies To: Difference of C and C++
#3
Re: Difference of C and C++
Posted 30 September 2008 - 11:50 PM
Your C++ compiler will compile C, but not vice versa. C++ is C with the ability to program in an object-oriented manner. Typical C is a struct, in C++ this is a class, with some useful methods added. The good bit is inheritance and overloading operators, C can't do this.
Having said that, I know a few people who are still writing C and claiming it is C++. The difference is non-trivial, you can't learn it in one day. Sign up for a course.
Having said that, I know a few people who are still writing C and claiming it is C++. The difference is non-trivial, you can't learn it in one day. Sign up for a course.
#4
Re: Difference of C and C++
Posted 01 October 2008 - 09:00 PM
For the most part, C++ is a superset of C but they've made some changes to it (and C is continuing to evolve) so not ALL C code will be compatible with C++.
But most will.
But most will.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|