473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Which is better, C or C++?

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.

Feb 21 '06 #1
10 1472
In article <11**********************@z14g2000cwz.googlegroups .com>,
Protoman <Pr**********@gmail.com> wrote:
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 .
--
I was very young in those days, but I was also rather dim.
-- Christopher Priest
Feb 21 '06 #2
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

Feb 21 '06 #3
"Protoman" <Pr**********@gmail.com> writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 21 '06 #4
"Protoman" <Pr**********@gmail.com> writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 21 '06 #5
Protoman wrote:
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.
Feb 21 '06 #6

"Protoman" <Pr**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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
Feb 21 '06 #7

Protoman wrote:
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.

Feb 21 '06 #8
Protoman wrote:
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.]

--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
"You can't KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]
Feb 21 '06 #9

"Protoman" <Pr**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!

http://www.beliefnet.com/dailybible/112306.htm
PS I believe the folks over at comp.lang.c++ could add something to
this.


Re there folks over there, gee whiz, I never realized that!.
Feb 21 '06 #10
On 20 Feb 2006 20:42:58 -0800, in comp.lang.c , "Protoman"
<Pr**********@gmail.com> wrote:
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
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Feb 22 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
6
by: lastusernameleft | last post by:
i've been researching this issue for a while and can't come to any conclusive answer, mostly it seems to be a preference over syntax, some saying c# is elegant while vb is clunky, or that c# is...
1
by: Markus Rebbert | last post by:
Hi list, i got an postgresql installation on linux (debian) with the htree partitions: 1- system 2- postgresql data files 3- postgresql WAL logs(pg_xferlog) Our standard file system is...
4
by: Ed Davis | last post by:
I'm trying to decide which of the following programming styles is better, as in easier to understand, and thus easier to maintain. Keep in mind that for posting purposes, this is a greatly...
9
by: Robert Lario | last post by:
C# verses VB.Net Which Way to go. I am sure this issues has come up before. Please direct me to any good articles that cover this issue. Ideally some neutral assessment.
22
by: smartwolf agassi via DotNetMonster.com | last post by:
I'm a C# language learner. I want to know which IDE is better for C# programing, Borland C#Builder or VS.net 2003? -- Message posted via http://www.dotnetmonster.com
2
by: monkeydragon | last post by:
Which is better, using ReadFile/WriteFile or use fstream?
33
by: Protoman | last post by:
Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
48
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.