Archived

This topic is now archived and is closed to further replies.

dark_stalker

Know C, want to learn C++, which book is right

Recommended Posts

I already know C (most of it), and my goal from the QBASIC days on was to learn C++.. I already know lots of VB, so most of the OOP wont be hard to learn.. I just wanted to know which book would be best for me.. thanks!

Share this post


Link to post
Share on other sites
You can try ''Teach Yourself C++ Third Edition'' By Hrbert Schildt.
It''s pretty good.
If you havent covered C properly you might want
''C++ from the Ground Up'' by the same author.
And if you think you''ll have any trouble with OOP design,
get
''Design Patterns'' I''ve forgotten the authors.

-Mezz

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Try "thinking in c++" by Bruce eckel.
You can read his book online on his website www.bruceeckel.com
It''a very good book and it covers all C++ standards with a lot of examples.


Good luck,
Yu Ominae

Share this post


Link to post
Share on other sites
if u know c and vb ... its not "that" hard to get started in C++ ... at least if u look at some MSDN-Library-examples ...

the step from C to C++ isnt as big as the step from Basic to C (imo) ....

and u wont learn to use C++ with all of its features for your special problems from a book

but that are just my opinions ...

Share this post


Link to post
Share on other sites
Trust me, buy "Sam''s Teach your self C++ in 24 hours (second edition)" (author: Jesse Liberty)
That''s the one I''m using, and it teaches you almost all of what you need. It includes the DGJPP compiler along with it.

KA...
ME...
HA...
ME...
HA!!!

Share this post


Link to post
Share on other sites
From what Sams books I have read, and thats quite a few, they aren''t very good IMHO.

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
you already know VB so OOP wont be hard to learn? Um, from what I understand VB is not yet a fully object oriented language, not untill release 7 will it include inheritance, polymorphism and encapsualtion capabilities. By all means, if you want to learn c++ as a language dont get a book based on c++ and the MFC''s, make sure it is a book based purley on the language of c++. You dont need all that microsoft crap to jumble up your mind until you understand what a class, let alone an MFC, actually is.

Share this post


Link to post
Share on other sites
I know what a class is.. mind you, its like a 'Type' from VB..
(A user defined data type) From what I understand, you've never
used Visual Basic..

        
// a class.. (C++)
class Person {
char Name
int Age
etc, etc
};


--------------------------------------------------------------
'Visual Basic 'Type'
' the ' is a VB comment, incase you didnt know

'type
Public Type Person
Name
Age
etc, etc
:
:
End Type



And by the way, everyone has different opinions..
yours seem the best to you. Maybe next time you
oppose someone's opinion, have some info to back
your opinion u , body really cares about
your opinion unless thiers is the same.

(sorry, I'm 13 and D+ed english)

-Phil

(And by the way, I admit Im 13 and I am a newbie at programming
games.. Im OK at programming)


Edited by - dark_stalker on July 23, 2000 11:12:16 PM

Share this post


Link to post
Share on other sites
Actually there is a big difference between a type and a class. I''m not a VB programmer but, from what I''ve seen so far, it can''t be polymorphed, inherited, can''t have member functions, private members, friends, et al.

Now I''m maybe wrong all the way because, as I stated before, I''m not a VB guru at all (and actually I''m not a C++ guru neither. If so please correct me.

Anyway, about the books, I found the Teach Yourself C++ pretty good. I also use the C/C++ bible as a reference. It is very helpful when it comes to lower level.

Hope this helps.

Share this post


Link to post
Share on other sites
While we are on the topic...I really don''t understand why people make such a big difference between C and C++. I do not really see much of a difference...the only real thing I see is that C uses struct and C++ uses class. And class has access rights and polymorphism and stuff. If you know C, take 20 minutes to read about classes...then you know C++! So what I am asking is...is there any other distinction between C and C++?(I know there are little things like C uses stdio and C++ uses iostream, and C uses char*/char[] while C++ uses string but these are very miniscule). Thanks for any help!

-blide
blide@mail.com

Share this post


Link to post
Share on other sites
Blide :
If you think you can learn all there is about classes in 20 minutes, then you do not know much. It takes a long time to start thinking in an object oriented manner, and to structure your pograms that way. If you just make programs like you would in c, but use classes, then you aren''t really doing oop. But to structure your programs in an oop takes a long time.

*** Triality ***

Share this post


Link to post
Share on other sites
Actually...I don't know if this has to do with the fact that I knew what classes were before I learned C but I think very OOP, I use object when needed to represent abstaract things and stuff....but I seriously believe that a person can learn mostly everything about classes in half an hour and people already think in OOP naturally...well at least I did and still do. It just seems natural to group commons things together and model them like in real life. Like in a game u could set up a character class...and derive the different types of characters from it like npc and usercontrolled and baddy etc... People naturally think in OOP, so all they have to learn is the class syntax and access and polymmorphism and a couple of special rules....pretty simple if you ask me!

-blide
blide@mail.com

Edited by - blide on July 24, 2000 12:19:15 PM

Share this post


Link to post
Share on other sites
hey dark stalker, what is all this opinion mumbo jumbo, the guy recommended a book and you ripped into him? If you dont want peoples opinions then dont post on this board asking for them.

Share this post


Link to post
Share on other sites
dark_stalker, i know you're 13 and all, but if you keep bashing people who have helped you, the way you are, i dont think you're going to get much help next time you ask a question.. and i dont think that anyone will even post on this question in the future... so you better change your "i dont care" attitude while it's not too late...

quote:

From what I understand, you've never
used Visual Basic..



Your point? You're the one asking questions on this post and that's what you give in return for all the help/suggestions you get? I would consider changing my behavior if I were you... but of course I'm not you so it's up to you...

quote:

' the ' is a VB comment, incase you didnt know



hmm.. that thing took me ages to figure out.. i mean the symbol for comments in VB... thanks for letting us know....

quote:

// a class.. (C++)
class Person {
char Name
int Age
etc, etc
};



Name should be declared as char *Name; and you need semicolons at the end of your declarations..
also, you need "public:" before all the declarations if you want it to be like your VB declaration...

e.g.

class Person
{
public:
char *Name;
int Age;
// etc, etc
};

-------------------------------
That's just my 200 bucks' worth!

..-=gLaDiAtOr=-..

Edited by - Gladiator on July 25, 2000 1:01:07 PM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
It''s sad to see that there are so many misconceptions.
Firstly, a note on blide''s reply: Ok, you may be right that the the C core is still there in C++ and that the grammatical differences may seem miniscule. But then you''re only scratching the surface. The major difference is just as zerwit stated the way you''re programming (from structured to OOP). Sure, one can
do OOP in C but it really ain''t the same thing. Anyway, I''ve yet to hear of a programmer mastering classes, members, virtual functions, friends, polymorphism, encapsulation etc etc in half an hour. It''s ridiculous. Admit it.

As for dark_stalkers dicussion I''m pretty much speechless.
If you don''t care about other peoples'' advice why are you asking?
Please never say "I know what a class is" if you haven''t studied C++, because then you don''t! Classes is a huge subject.
BTW follow the advice to buy a pure C++ book. I can''t imagine what good MFC would do a newbie C++ programmer and I''m sure most people would agree with me on that.

MFC = Microsoft Formatted Confusion

Share this post


Link to post
Share on other sites