Which is better, C or C++?

P

Protoman

Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

PS I believe the folks over at comp.lang.c++ could add something to
this.
 
W

Walter Roberson

Which is better for general-purpose programming, C or C++?

Without a fairly detailed definition of what it means
for one language to be 'better' than another, and without
a fairly detailed definition of what 'general-purpose programming'
is, then the matter simply isn't worth discussing.

And if someone were to supply detailed definitions of either
of those terms, the matter would not be something to discuss
here in comp.lang.c .
 
P

Protoman

OK, let me define "general purpose programming"

General Purpose Programming: In computer software a general-purpose
programming language is a programming language designed to be used for
writing software in a wide variaty of application domains. In many ways
a general-purpose language only has this status because it does not
include language constructs designed to be used within a specific
application domain (eg, a page description language contains constructs
intended to make it easier to write programs that control the layout of
text and graphics on a page).



And
 
K

Keith Thompson

Protoman said:
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

This is comp.lang.c. We don't discuss C++ here.
PS I believe the folks over at comp.lang.c++ could add something to
this.

I doubt it.
 
K

Keith Thompson

Protoman said:
OK, let me define "general purpose programming"

General Purpose Programming: In computer software a general-purpose
programming language is a programming language designed to be used for
writing software in a wide variaty of application domains. In many ways
a general-purpose language only has this status because it does not
include language constructs designed to be used within a specific
application domain (eg, a page description language contains constructs
intended to make it easier to write programs that control the layout of
text and graphics on a page).

If you're going to post here, you need to read
<http://cfaj.freeshell.org/google/>.

You're not going to get a useful answer to your question here. We
discuss the C programming language; we're not interested in comparing
it to other languages. Use whichever one works best for you.

If I didn't know better, I'd suspect you were trying to start a flame
war. Oh, wait, I don't know better.
 
N

Neil

Protoman said:
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

PS I believe the folks over at comp.lang.c++ could add something to
this.

your friend is wrong it is C.
 
R

Rod Pemberton

Protoman said:
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

PS I believe the folks over at comp.lang.c++ could add something to
this.

I've never programmed in C++. I love the C++ theories such as overloading,
object "orientedness," and code reuse. Having worked on a 5 million plus
line program for a number of years, those features would have been great.
"Cut and paste" was a major problem for that program. But, I have no real
world experience with C++. I have recently seen on the internet a couple of
university studies which showed that anything that could be done in C++
could be done in C, would execute faster in C, but some things were harder
to program in C.


Rod Pemberton
 
J

John Bode

Protoman said:
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

They suck equally for general-purpose programming.
 
A

Artie Gold

Protoman said:
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

PS I believe the folks over at comp.lang.c++ could add something to
this.
Whitespace is better than either of them (see:
http://compsoc.dur.ac.uk/whitespace/). It has the added benefit of
making printer cartridges last longer when you need hardcopy of code.

--ag

[Yes, it's a stupid answer -- but it was, after all, a stupid, trolling
question. I shouldn't have answered. I know.]
 
M

Mark McIntyre

Which is better for general-purpose programming, C or C++?

Both. Neither.
My friend says C++, but I'm not sure. Please enlighten me.

There's no one single answer since it depends entirely on what sort of
general purpose programming one does.
PS I believe the folks over at comp.lang.c++ could add something to
this.

So would the folks over in the perl, python and basic groups... though
in no case might it be a useful addition :)
Mark McIntyre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,944
Members
47,491
Latest member
mohitk

Latest Threads

Top