what are some differences between C and C++?
they are similar are they not? i asked this before at a forum for a game add on (what a place) and the writer of the game add on said they are very similar but there's just a few differences between them. what are those differences?
sorry if it's a dumb question but i'm only at page 100 of my Learn C++ in 21 Days book then i hear some guy say "C is the mother of all languages, you should learn it first" |
Well, c++ gives you a little more features (classes and function overloading mainly) but it is a slower than just plain c.
Since C++ is just an improved C, you can use plain C and compile it using a C++ compiler. |
Classes, virtual functions, polymorphism in general, templates...
|
In C++ you have more modularity -- I think that would be the way to put it. You get some things that you cant get in C, like Classes and function overloading.
|
The basic thing C++ adds to C are object oriented programming constructs. These are things like classes, methods, inheritance, and overloading. These can be very useful for GUI programs, but are also often a source of bloat.
|
The real difference is in the amount of hair that you rip out of your head and the amount of beer consumed while coding! :)
|
Code:
main() |
VFS!!!
Quote:
What an atrocity!!! :) |
AHAHAHAHAHAHAHAH!!!!
he should go to windows, they need of that good ol incorrect programming skills ;) |
Well, I just tried to mess with the compiler!!! :D
|
All times are GMT -5. The time now is 10:55 PM. |