Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!! 33 2512
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!!!!!
What part of "++" is hard for you to understand?
--
Scott McPhillips [VC++ MVP]
Protoman wrote: Jack Klein wrote: On 20 Feb 2006 20:40:25 -0800, "Protoman" <Pr**********@gmail.com> wrote in comp.lang.c++:
Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
Each of them is both better than the other.
Questions like this will get you plonked as a troll in short order.
Why would I get plonked? I'm just asking a simple question.
Did you also ask it in comp.lang.c? What reaction did you get there?
"Protoman" <Pr**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com... Which is better for general-purpose programming, C or C++?
Yes.
My friend says C++, but I'm not sure.
So why did you ask him/her?
Please enlighten me.
In comp.lang.c++, C++ is best.
In comp.lang.c, C is best
In comp.lang.fortran, fortran is best
In comp.lang...
Get the picture?
Thanks!!!!!
You're welcome.
BTW please read this: http://www.slack.net/~shiva/welcome.txt
-Mike
"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!!!!!
Protoman... I remember you.
I just wish outlook had a ploink file.
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!!!!!
Define "better".
- J.
probably where speed matters.. C is better, where security matters..
C++ is better..
depends on necessity.
kalyan wrote: probably where speed matters.. C is better
FUD.
--
Ian Collins.
"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!!!!!
Just a humble perspective of mine:
C remains the "portable assembly language", available on nearly
every processor architecture in use, including the most obscure
embedded controllers. It provides low-level control, has a large
user base, and is relatively easy to learn (if you have any
understanding of assembly or machine languages).
C++ was designed to leverage this foundation, while integrating
support for high-level programming paradigms (object-orientation,
generics, error handling with exceptions, better extensibility
and resource management). Personally I find it painful to write
large programs without taking advantages of these features.
However, getting a complete understanding of C++ takes much
more time and effort -- giving C++ the reputation of being
elitist, a language for specialists.
I am using both, as well as higher-level scripting languages
(Perl, PHP, Python, ...), and will look into platform-specific
extensions of C++ when the time comes ( e.g. C++/CLI ).
The better tool always depends on the job to be done, the
people you are working with, and a number of other factors.
What is your definition of "general-purpose programming" ?
Regards,
Ivan
-- http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
kalyan wrote: probably where speed matters.. C is better, where security matters.. C++ is better.. depends on necessity.
Nope.
Ben Pope
--
I'm not just a number. To many, I'm known as a string...
"kalyan" <ks**********@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com... probably where speed matters.. C is better, where security matters.. C++ is better.. depends on necessity.
Wot do you mean by that?
--Wg-
nntp.aioe.org wrote: "kalyan" <ks**********@gmail.com> wrote in message news:11*********************@g43g2000cwa.googlegro ups.com... probably where speed matters.. C is better, where security matters.. C++ is better.. depends on necessity. Wot do you mean by that?
Apples are less fruity than oranges.
Ben Pope
--
I'm not just a number. To many, I'm known as a string... In comp.lang.c++, C++ is best. In comp.lang.c, C is best In comp.lang.fortran, fortran is best
A good FORTRAN programmer can write FORTRAN code in _any_ language ;)
Ivan Vecerina wrote: C++ was designed to leverage this foundation, while integrating support for high-level programming paradigms (object-orientation, generics, error handling with exceptions, better extensibility and resource management). Personally I find it painful to write large programs without taking advantages of these features. However, getting a complete understanding of C++ takes much more time and effort -- giving C++ the reputation of being elitist, a language for specialists.
Well said!! Unfortunately all the noise pertaining to code bloat/slow
and the C++ standard library's use (some call it the STL ) in embedded
will never end. When I first decided to embrace the language, that's
all I ever heard from the 'C' purists.
The most recent argument I've heard pertains to the
re-compilation/re-linking saga when dealing with templates. Granted
I've haven't done much investigation but in a nutshell. gcc apparently
does a * couple * iterations of re-compile/re-link when dealing with
templates. Not sure why ... but ..
Protoman ha scritto: Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
In my opinion it depends on what you have to manage. If you have to
manage little project, not complex, C (in my experience) is better than
C++ becouse you spend less money. If you have to manage a big project
OOP is quite usefull for code reuse, scalability, design and so on, so
I'd use C++ . I don't find this a stupid question, and I don't have a
fix response ....
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!!!!!
Oh, joy. Another round of "innocent questions" from Protoman.
--
Mike Smith
Protoman posted: Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
C++.
It has all the features of C, plus more feature like classes,
inheritance, polymorphism, templates.
The C Programming language is dead in my mind.
-Tomás
Jack Klein wrote: On 20 Feb 2006 20:40:25 -0800, "Protoman" <Pr**********@gmail.com> wrote in comp.lang.c++:
Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
Each of them is both better than the other.
Questions like this will get you plonked as a troll in short order.
I plonked him a while back for some other shenanigans.
Brian
Jim Langston wrote: "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!!!!!
Protoman... I remember you.
I just wish outlook had a ploink file.
You can plonk in OE, I believe. I haven't used it in some time (it's
really not that good) but I see to recall that capability.
See here: http://www.hyphenologist.co.uk/killf...filefaqhtm.htm
Brian
Jacek Dziedzic wrote: 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!!!!!
Define "better".
adj. Comparative of good.
1. Greater in excellence or higher in quality.
2. More useful, suitable, or desirable: found a better way to go; a
suit with a better fit than that one.
3. More highly skilled or adept: I am better at math than English.
4. Greater or larger: argued for the better part of an hour.
5. More advantageous or favorable; improved: a better chance of
success.
6. Healthier or more fit than before: The patient is better today.
In article <7r****************@newsread1.news.pas.earthlink.n et>, Mike
Wahler <mk******@mkwahler.net> writes "Protoman" <Pr**********@gmail.com> wrote in message news:11**********************@z14g2000cwz.googleg roups.com... Which is better for general-purpose programming, C or C++?
Yes.
My friend says C++, but I'm not sure.
So why did you ask him/her?
Please enlighten me.
In comp.lang.c++, C++ is best. In comp.lang.c, C is best In comp.lang.fortran, fortran is best In comp.lang...
HERETIC!!!! FORTH is the only true Path
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
In article <kC******************@news.indigo.ie>, Tomás <NU**@NULL.NULL>
writes Protoman posted:
Which is better for general-purpose programming, C or C++? My friend says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
C++.
It has all the features of C, plus more feature like classes, inheritance, polymorphism, templates.
The C Programming language is dead in my mind.
Though C is far more widely used and is likely to out last C++
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Well of course C++ is better. I mean, do you really want to go to
comp.lang.c group to find out? Ignorance is bliss ;)
OK, I made my mind up: I'm going to become a C++ purist; I live for the
day when compilers that adhere to C++0x come out :-) Why is C still
around anyway? We don't need it, we have the glorious C++!!!! And what
are your thoughts on CC++ (not a typo; it stands for Concurrent C++, a
direct superset of C++ that also natively supports multiprocessor
programming)?
In article <11*********************@g44g2000cwa.googlegroups. com>,
Protoman <Pr**********@gmail.com> writes OK, I made my mind up: I'm going to become a C++ purist; I live for the day when compilers that adhere to C++0x come out :-) Why is C still around anyway? We don't need it, we have the glorious C++!!!!
Because most embedded systems use C. There are a lot more of them around
than PC's by an order of several magnitudes. from 8-128 bit MCUs For
many of the targets there are not C++ compilers.
That said on a PC C has virtually died out. I think that given that Java
C# and C++/CLI from MS is predominate in the PC world C++ is likely to
die out before C.
However that does not answer the question as to which is better. IT
depends what you are doing. If most of your work is going to be on a PC
then go for C++.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ That said on a PC C has virtually died out. I think that given that Java C# and C++/CLI from MS is predominate in the PC world C++ is likely to die out before C.
Still, can a large-scale project which requirements include high-performance
(think AAA games, 3D related software, etc) really rely on C# in its current
form?
AFAIK C++ is has just a small overhead on top of plain C in term of raw
performance while C# has a much bigger one.
--
JT
Jim Langston wrote in message ... Protoman... I remember you.
I just wish outlook had a ploink file.
Tools-->Newsgroup Filters... [add]
View-->Current View-->Filtered Messages [un-check]
--
Bob R
POVrookie
"Protoman" <Pr**********@gmail.com> skrev i meddelandet
news:11**********************@o13g2000cwo.googlegr oups.com... Jack Klein wrote: On 20 Feb 2006 20:40:25 -0800, "Protoman" <Pr**********@gmail.com> wrote in comp.lang.c++:
> Which is better for general-purpose programming, C or C++? My > friend > says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
Each of them is both better than the other.
Questions like this will get you plonked as a troll in short order.
Why would I get plonked? I'm just asking a simple question.
Which fruit is better for general consumption, apples or oranges?
To answer your question, we will first have to agree on what we mean
by "better" and "general-purpose".
That will never happen. :-)
Bo Persson
On 2006-02-21, ro**********@gmail.com <ro**********@gmail.com> wrote: Jacek Dziedzic wrote: 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!!!!!
Define "better".
adj. Comparative of good.
1. Greater in excellence or higher in quality. 2. More useful, suitable, or desirable: found a better way to go; a suit with a better fit than that one. 3. More highly skilled or adept: I am better at math than English. 4. Greater or larger: argued for the better part of an hour.
So C++ *is* better in at least one sense. Though I wouldn't want to
try to construct that sentence.
Personally, I defer to Protoman's friend on these matters.
--
Neil Cerutti
The Minutemen are not tall in terms of height. --Dan Bonner
Jeremiah Tesla <te***@tlnewsreader.com> writes: That said on a PC C has virtually died out. I think that given that Java C# and C++/CLI from MS is predominate in the PC world C++ is likely to die out before C.
Still, can a large-scale project which requirements include high-performance (think AAA games, 3D related software, etc) really rely on C# in its current form?
AFAIK C++ is has just a small overhead on top of plain C in term of raw performance while C# has a much bigger one.
Why don't you do a benchmark of the two and see if the overhead is *acceptable*
for the project.
S.
A "good" C programmer will make a "better" C++ programmer. You could
always program in C++ and have the compiler output C code (clumsy in
several applications). 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...
|
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...
|
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...
|
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...
|
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: 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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| | |