Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 5th, 2005, 2:21 PM   #1
meverha1
Newbie
 
Join Date: Sep 2005
Posts: 11
Rep Power: 0 meverha1 is on a distinguished road
Learning C before C++ - Important?

I want to start learning C++ and eventually Visual C++. However, I'm wondering how important it is to learn C before learning C++. Should I learn C first or can/should I just jump right into C++?

Also, what do people think of "C Primer Plus" and "C++ Primer Plus" for learning?

Thanks for your opinions.
meverha1 is offline   Reply With Quote
Old Sep 5th, 2005, 2:28 PM   #2
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
Don't worry about C. C++ is a superset of C. There are no prerequisites for C++. I recommend to jump right to C++. I wish I did that.
Navid is offline   Reply With Quote
Old Sep 5th, 2005, 2:48 PM   #3
meverha1
Newbie
 
Join Date: Sep 2005
Posts: 11
Rep Power: 0 meverha1 is on a distinguished road
Thanks for the advice. I eventually want to get into game programming as a hobby and I've heard conflicting opinions from people about the importance of C for this .
meverha1 is offline   Reply With Quote
Old Sep 5th, 2005, 3:35 PM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well, game programming tends to utilise many C++ features such as classes and virtual functions, which aren't available in C. That said, learning C first will help you gain a deeper understanding of pointers, which are necessary for any large project. Hell, flip a coin or something. :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 5th, 2005, 3:37 PM   #5
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
for 3d stuff, i don't think you need to know that much about pointers
Polyphemus_ is offline   Reply With Quote
Old Sep 5th, 2005, 3:43 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Really? The whole of DirectX is based on pointers, or "LP"s as MS likes to call them.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 5th, 2005, 5:11 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You don't know C or C++ until you understand pointers. Visual C++ is not a language, it's a compiler brand. C++ very nearly is a superset of C (not precisely, but close). I'd personally recommend going with C++ right from the start -- the C is right there if you need it, a (near) subset.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 5th, 2005, 6:36 PM   #8
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 644
Rep Power: 4 Jessehk is on a distinguished road
I own C++ Primer Plus and I think it is a fantastic book. Just make sure you know a little bit about basic programming concepts, and it will be a entirely worth it.
Jessehk is offline   Reply With Quote
Old Sep 6th, 2005, 1:37 AM   #9
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
no, you don't have to learn c first, it can give you a better understanding of some basic concepts though...BUT you could also learn those in C++ depending on your learning resource. i always say learn c first, but you don't have to, i just think it's a little easier in helping you understand things better (mostly pointers and arrays...and hell, even the usage of primitive data types when forced to use "scanf/printf" instead of "cin/cout"). oh, and those books are pretty good. the SAMS books and the deitel and deitel books are all good (sams i think are cheaper though). go to amazon.com and search for the books USED...you can get very expensive books (albeit sometimes an older edition) for $2.00...literally...i've done it...many times. i really overuse the ellipsis don't i?
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Sep 6th, 2005, 5:47 AM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
pointers and arrays...and hell, even the usage of primitive data types
Those are all C++, too. That's my point.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC