C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Which is better, C or C++
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Protoman
Guest





PostPosted: Tue Feb 21, 2006 5:06 am    Post subject: Which is better, C or C++ Reply with quote



Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
Back to top
Scott McPhillips [MVP]
Guest





PostPosted: Tue Feb 21, 2006 6:06 am    Post subject: Re: Which is better, C or C++ Reply with quote



Protoman wrote:
Quote:
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]
Back to top
Protoman
Guest





PostPosted: Tue Feb 21, 2006 6:06 am    Post subject: Re: Which is better, C or C++ Reply with quote



Jack Klein wrote:
Quote:
On 20 Feb 2006 20:40:25 -0800, "Protoman" <Protoman2050 (AT) gmail (DOT) 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.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html

Why would I get plonked? I'm just asking a simple question.
Back to top
Jack Klein
Guest





PostPosted: Tue Feb 21, 2006 6:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

On 20 Feb 2006 20:40:25 -0800, "Protoman" <Protoman2050 (AT) gmail (DOT) com>
wrote in comp.lang.c++:

Quote:
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.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
Back to top
Victor Bazarov
Guest





PostPosted: Tue Feb 21, 2006 6:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

Protoman wrote:
Quote:
Jack Klein wrote:
On 20 Feb 2006 20:40:25 -0800, "Protoman" <Protoman2050 (AT) gmail (DOT) 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?
Back to top
Jack Klein
Guest





PostPosted: Tue Feb 21, 2006 7:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

On Tue, 21 Feb 2006 00:55:44 -0500, "Scott McPhillips [MVP]"
<org-dot-mvps-at-scottmcp> wrote in comp.lang.c++:

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

Note, however, that it is a post increment. And we all know what that
means...

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
Back to top
Jim Langston
Guest





PostPosted: Tue Feb 21, 2006 7:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

"Protoman" <Protoman2050 (AT) gmail (DOT) com> wrote in message
news:1140496825.400085.184640 (AT) z14g2000cwz (DOT) googlegroups.com...
Quote:
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.
Back to top
Mike Wahler
Guest





PostPosted: Tue Feb 21, 2006 7:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

"Protoman" <Protoman2050 (AT) gmail (DOT) com> wrote in message
news:1140496825.400085.184640 (AT) z14g2000cwz (DOT) googlegroups.com...
Quote:
Which is better for general-purpose programming, C or C++?

Yes.

Quote:
My friend
says C++, but I'm not sure.

So why did you ask him/her?

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

Quote:
Thanks!!!!!

You're welcome.

BTW please read this:
http://www.slack.net/~shiva/welcome.txt

-Mike
Back to top
Jacek Dziedzic
Guest





PostPosted: Tue Feb 21, 2006 8:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

Protoman wrote:
Quote:
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.
Back to top
Ian Collins
Guest





PostPosted: Tue Feb 21, 2006 9:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

kalyan wrote:
Quote:
probably where speed matters.. C is better

FUD.


--
Ian Collins.
Back to top
kalyan
Guest





PostPosted: Tue Feb 21, 2006 9:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

probably where speed matters.. C is better, where security matters..
C++ is better..
depends on necessity.
Back to top
nntp.aioe.org
Guest





PostPosted: Tue Feb 21, 2006 10:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

"kalyan" <ksudhakalyan (AT) gmail (DOT) com> wrote in message
news:1140509312.954447.84310 (AT) g43g2000cwa (DOT) googlegroups.com...
Quote:
probably where speed matters.. C is better, where security matters..
C++ is better..
depends on necessity.

Wot do you mean by that?


--Wg-
Back to top
Ben Pope
Guest





PostPosted: Tue Feb 21, 2006 10:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

nntp.aioe.org wrote:
Quote:
"kalyan" <ksudhakalyan (AT) gmail (DOT) com> wrote in message
news:1140509312.954447.84310 (AT) g43g2000cwa (DOT) googlegroups.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...
Back to top
Ben Pope
Guest





PostPosted: Tue Feb 21, 2006 10:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

kalyan wrote:
Quote:
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...
Back to top
Ivan Vecerina
Guest





PostPosted: Tue Feb 21, 2006 10:06 am    Post subject: Re: Which is better, C or C++ Reply with quote

"Protoman" <Protoman2050 (AT) gmail (DOT) com> wrote in message
news:1140496825.400085.184640 (AT) z14g2000cwz (DOT) googlegroups.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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.