From: Pat on 15 Dec 2009 20:08 Francis Glassborow wrote: > Pat wrote: > >> >> Yes, your right. In my mind I was viewing structures and classes as >> different things. I've been teaching myself C++ with the help of >> several books. In the text that has served as my primary reference, >> structures were introduced fairly early (well ahead of classes). So I >> got use to using those well before knowing what a class was. > > So what was the primary textbook? Because introducing structs like that > seems unhelpful (but typical of authors who think you should learn the C > way before unlearning it to learn the C++ way :) } There are actually three different texts I've been using. I like having several to ref to, as some authors will explain certain topics better than others. One is yours ("You can program in C++") which I found to be a good introductory text. Another is "Accelerated C++" by Koenig and Moo. It's a little too accelerated for my taste, so I haven't used it that much. The one I've used the most is "C++ Primer Plus" by Prata. At almost 1200 pages, it's much more detailed than the others, but still very readable. As such, it makes a good reference, but since the author often likes to go into great detail on the various nuances of the language, it can be a bit overwhelming (and confusing!) for the newbie at times. So they all have their pros and cons. >> >> I have to say, C++ is the most complex programming language I have >> ever learned. Its taken a while to digest it all (or least the little >> bit I've learned). This newsgroup has been a big help though, and I >> appreciate all the responses I've gotten to my questions. > > Yes C++ is a very complex language but like English using it does not > require mastery of all or even most of it. That is true! I got into C++ because I wanted to write some dll's for a finite element code I'm using. I did that using just the very basic elements of the language (functions and structures but no classes). Of course, now that I've discovered classes and the magic of overloaded operators, I will probably end up rewriting everything I wrote (and do it in half the number of lines)! Thanks again for your help. I appreciate it.
First
|
Prev
|
Pages: 1 2 3 4 5 6 7 Prev: Accelerated C++ Chapter 5 Exercise 1 Next: Defining complex data types? |