Jump to content


C or C++


9 replies to this topic

Poll: C or C++ (1 member(s) have cast votes)

C or C++

  1. C (6 votes [24.00%] - View)

    Percentage of vote: 24.00%

  2. C++ (19 votes [76.00%] - View)

    Percentage of vote: 76.00%

Vote Guests cannot vote

#1 -mx5-Kris

    Member

  • Members
  • PipPip
  • 55 posts

Posted 08 October 2004 - 03:31 AM

: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?

#2 NeZbiE

    Member

  • Members
  • PipPip
  • 61 posts

Posted 08 October 2004 - 05:01 AM

There's always "extern "C"" =P

#3 ShadowHawk

    Member

  • Members
  • PipPip
  • 47 posts

Posted 08 October 2004 - 06: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.

#4 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 08 October 2004 - 07:30 AM

I use a mixture of both, so I voted C because my code is in C.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.

#5 NeZbiE

    Member

  • Members
  • PipPip
  • 61 posts

Posted 08 October 2004 - 01:32 PM

Let's all have a good old flamewar =)

#6 NomadRock

    Senior Member

  • Members
  • PipPipPipPip
  • 785 posts

Posted 08 October 2004 - 06: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.
Jesse Coyle

#7 -mx5-Kris

    Member

  • Members
  • PipPip
  • 55 posts

Posted 09 October 2004 - 02:05 AM

sorry man, no intention of lighting a flame war....

#8 Zoulz

    New Member

  • Members
  • PipPip
  • 18 posts

Posted 21 October 2004 - 02:00 PM

As C++ is an evolved variant of C, I don't see the point in not using it?

#9 Codemonger

    New Member

  • Members
  • PipPip
  • 23 posts

Posted 21 October 2004 - 02:31 PM

Some really good points have been made:

Quote

There's always "extern "C"" =P

Quote

As C++ is an evolved variant of C, I don't see the point in not using it?

Quote

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.

#10 Reedbeta

    DevMaster Staff

  • Administrators
  • 5311 posts
  • LocationSanta Clara, CA

Posted 21 October 2004 - 10: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.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users