View Full Version : C or C++
[mx5]Kris
10-07-2004, 09:31 PM
:D basically i just wanna get an idea of what you reckon (without taking technologies into mind and features) is better. And more importantly what do you use?
NeZbiE
10-07-2004, 11:01 PM
There's always "extern "C"" =P
ShadowHawk
10-08-2004, 12:51 AM
Well i just cant work without objects.
So i go for C++ man i cant even think about working without objects. Real life consists of object imo im using a keyboard which is just another subclass of object and so on.
baldurk
10-08-2004, 01:30 AM
I use a mixture of both, so I voted C because my code is in C.
NeZbiE
10-08-2004, 07:32 AM
Let's all have a good old flamewar =)
NomadRock
10-08-2004, 12:15 PM
Dont make polls like this. If you were advanced enough to know the reasoning behind the languages, you would also be wise enough to realize a flame war question.
[mx5]Kris
10-08-2004, 08:05 PM
sorry man, no intention of lighting a flame war....
Zoulz
10-21-2004, 08:00 AM
As C++ is an evolved variant of C, I don't see the point in not using it?
Codemonger
10-21-2004, 08:31 AM
Some really good points have been made:
There's always "extern "C"" =P
As C++ is an evolved variant of C, I don't see the point in not using it?
Dont make polls like this. If you were advanced enough to know the reasoning behind the languages, you would also be wise enough to realize a flame war question.
* NOTE: these are just my personal opinions
I found it handy to use a mixture of both. I prefer C and don't care for C++ OOP abilities. I would use Java or .NET if I wanted a pure OOP language. But C++ is very wide spread and still in use today as a common tool. I find what you do with C++ and objects you can acomplish ten times faster with .net and also Java is like a clean OOP version of C, to me anyway. C++ is fast though.
If I had to pick one, I would pick C++ because I can write all the C I want and not have to worry about the ++ part :) you kill two birds with one stone. I don't think their is any use in arguing which is better, c++ is basically the object version of C.
Now you could argue the OOP features of C++ though, at least compared to other OOP languages.
Reedbeta
10-21-2004, 04:56 PM
I don't care much for using pure OOP languages, but sometimes it's really handy to be able to write some classes. C++ is good for that, letting you use OOP where you like and standard procedure-call programming where you don't.
Plus, I like being able to use references, the STL, default parameters, operator and function overloading, declaring variables at any point in the code, initializers in declarations, new and delete, and all the other handy features of C++ that have nothing to do with OOP.
vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.