C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2009, 11:38 AM   #1
Trying to Learn C
 
nathanpc's Avatar
 
Join Date: Jul 2009
Location: Brazil
Posts: 32
Arrow Difference Between C And C++

Hello,
I'm starting to learn C or C++ and i want to know two things:
  • Difference Between C And C++
  • What Is The Best C Or C++

Thanks,
Nathan Paulino Campos
__________________
Eee PC 904HD White | Windows XP Home Edition | My Site

Google Talk: eeepc904@gmail.com
ICQ: 424738586

Add me and let's talk about C and C++!
nathanpc is offline   Reply With Quote
Old 07-14-2009, 11:41 AM   #2
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
Too numerous to list.
To be basic, C++ is a higher-level version of C, more modern, flexible and powerful.

The best depends on where you want to use it, and it's also subjective because everyone has a different opinion. If it's computer software, the "best" choice I would make is C++. Same goes for games.
For drivers you will end up stuck with C. For embedded systems, support for C++ may be scarce, so you may have to use C for this.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 07-14-2009, 11:44 AM   #3
Trying to Learn C
 
nathanpc's Avatar
 
Join Date: Jul 2009
Location: Brazil
Posts: 32
Hello Elysia,
Thanks for the aswear, then i'm going to buy a C++ Book to read.

Thanks,
Nathan Paulino Campos
__________________
Eee PC 904HD White | Windows XP Home Edition | My Site

Google Talk: eeepc904@gmail.com
ICQ: 424738586

Add me and let's talk about C and C++!
nathanpc is offline   Reply With Quote
Old 07-14-2009, 11:48 AM   #4
Registered User
 
Join Date: Apr 2006
Location: United States
Posts: 3,202
I took a look at your web site. It looks like you want to do windows programming, or port something to windows. (I do not read your language.) To that end, if you're interested in doing that right away, find out what you want to port is written in, and learn about it.
__________________
Os iusti meditabitur sapientiam
Et lingua eius loquetur indicium

"There is nothing either good or bad, but thinking makes it so." (Shakespeare, Hamlet, Act II scene ii)

http://www.myspace.com/whiteflags99
whiteflags is offline   Reply With Quote
Old 07-14-2009, 01:05 PM   #5
Trying to Learn C
 
nathanpc's Avatar
 
Join Date: Jul 2009
Location: Brazil
Posts: 32
Hello whiteflags,
Yes but i changed my site to: Dev Python and i don't changed it here.

Thanks,
Nathan Paulino Campos
__________________
Eee PC 904HD White | Windows XP Home Edition | My Site

Google Talk: eeepc904@gmail.com
ICQ: 424738586

Add me and let's talk about C and C++!
nathanpc is offline   Reply With Quote
Old 07-14-2009, 01:27 PM   #6
Algorithm Dissector
 
iMalc's Avatar
 
Join Date: Dec 2005
Location: New Zealand
Posts: 2,476
Quote:
Originally Posted by nathanpc View Post
Hello,
I'm starting to learn C or C++ and i want to know two things:
  • Difference Between C And C++
  • What Is The Best C Or C++
You may as well be asking which is better, Holden or Ford?
You'll cause the same riot either way. So I'll just say learn D instead!
Other than that, just STFW!
__________________
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
iMalc is offline   Reply With Quote
Old 07-14-2009, 02:26 PM   #7
Just Lurking
 
Dave_Sinkula's Avatar
 
Join Date: Oct 2002
Posts: 4,990
Quote:
Originally Posted by nathanpc View Post
  • Difference Between C And C++
Incompatibilities Between ISO C and ISO C++
__________________
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Dave_Sinkula is offline   Reply With Quote
Old 07-14-2009, 02:36 PM   #8
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
Ah, but I think that isn't what nathanpc is after.
What he/she is after is not the backwards compatibility of C++, but rather what is a considered a good C++ program vs a good C program.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 07-14-2009, 03:26 PM   #9
Registered User
 
Join Date: Apr 2006
Location: United States
Posts: 3,202
Sometimes the answers people are after are deceptive and wrong.
__________________
Os iusti meditabitur sapientiam
Et lingua eius loquetur indicium

"There is nothing either good or bad, but thinking makes it so." (Shakespeare, Hamlet, Act II scene ii)

http://www.myspace.com/whiteflags99
whiteflags is offline   Reply With Quote
Old 07-15-2009, 03:16 AM   #10
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
I agree, but I can't see why difference it would make to know the difference between ISO C and ISO C++.
It seems to the OP wants to know which language to learn of C and C++, hence asking a somewhat vague question, what's best (because the OP doesn't know any better)?
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 07-15-2009, 08:21 PM   #11
Registered User
 
Join Date: Jul 2009
Posts: 5
C was the C++ predecessor.........it has features that lend itself better to really big projects
lemonwaffles is offline   Reply With Quote
Old 07-16-2009, 02:13 AM   #12
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
C lends itself better for really big projects?
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 07-16-2009, 01:51 PM   #13
Registered User
 
Join Date: Apr 2006
Location: United States
Posts: 3,202
Quote:
Originally Posted by Elysia View Post
I agree, but I can't see why difference it would make to know the difference between ISO C and ISO C++.
It seems to the OP wants to know which language to learn of C and C++, hence asking a somewhat vague question, what's best (because the OP doesn't know any better)?
Well you're right, he is asking a very vague question, and he got what he deserved, a very literal answer. You can only seriously answer a well thought out question.

Quote:
Originally Posted by Elysia View Post
C lends itself better for really big projects?
Maybe you were being rhetorical. I think they have the same capacity.
__________________
Os iusti meditabitur sapientiam
Et lingua eius loquetur indicium

"There is nothing either good or bad, but thinking makes it so." (Shakespeare, Hamlet, Act II scene ii)

http://www.myspace.com/whiteflags99
whiteflags is offline   Reply With Quote
Old 07-16-2009, 01:57 PM   #14
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
Quote:
Originally Posted by whiteflags View Post
Maybe you were being rhetorical. I think they have the same capacity.
No, I was asking if C has features that lends itself better for bigger projects, or if it was a typo.
If we compare C and C++, then C++ has features that lends itself from bigger projects (because C++ only adds things to C and not removes them, it would be illogical to say C has such features).
As to which is better for any type of project, big or small, that's a different question.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Reply

Tags
c++, cpp, difference

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 08:54 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22