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. 10 1497
In article <11************ **********@z14g 2000cwz.googleg roups.com>,
Protoman <Pr**********@g mail.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
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
"Protoman" <Pr**********@g mail.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_Keit h) 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.
"Protoman" <Pr**********@g mail.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_Keit h) 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.
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.
"Protoman" <Pr**********@g mail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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 "orientedne ss," 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
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.
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.]
"Protoman" <Pr**********@g mail.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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!. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the user. I want that cookie
should get deleted when user closes the browser without signing out.
I think it is done in global.asa file . But i don;t know how to do it?
|
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 geeky while vb is more naturally
legible. there dont seem to be many capabilities in one over the other, at
least with whidbey, so basically, is there anything c# can do that vb can't?
|
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 ext3. Now i heard, xfs is better for the
data files.
|
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
simplified example.
The goal is to parse and build an AST for a print statement,
returning the base-node of the AST built.
print ::= "print" expr | string ("," expr | string )*
|
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.
| |
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
|
by: monkeydragon |
last post by:
Which is better, using ReadFile/WriteFile or use fstream?
|
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!!!!!
|
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 David Daniels where
he said that probably the VS2003 toolkit will be used for Python 2.5
again. However, even before the release of Python 2.5, I cannot seem to
find many retailers around here that still carry Visual Studio 2003,
and some were a...
|
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 like 65% of
the time of the second routine. Yet both do the same thing. However,
the second one seems better in terms of the way the code is written
since it helps encapsulate the transformation in the inner loop better
making it easier to read,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |