When I said you'll probably end up buying Stroustrup's book I was thinking of #1. I hadn't heard of #2 until just now -- I see it was just published a few months ago -- but I just read Stroustrup's description of it on his blog, and it sounds perfect for you -- except maybe for the size. 1272 pages, yikes! #3 is written more for people who are interested in language design than for users of the lanuage.Originally Posted by 'samuraicow',index.php?page=Thread&postID=187630#p ost187630
I agree with Varmon's advice about breaking this up into separate topics but I wouldn't necessarily advise you to learn C first and then the rest of C++ and the Windows API later. That's how I did it myself, and it worked out well for me, but that was 25 years ago. I don't know if that's the best way today or the best way for everyone. The language has changed and the ways that people use the language has changed. Most of all, different people learn things best in different orders.
I would imagine that many people today approach C++ through its template library. That's just a guess on my part but that might work out well for some people. If you do that, you're starting at the "high level." If you start with C, you're starting from the "low level." Either way you want to develop a sense of how those levels interact so you can design good programs.
I think it's a good idea to keep in mind that there are several different topics. Then you can make the decision yourself whether you want to do them one at a time -- and if so in which order.
C++ has grown into an enormous language and you need to focus on the main parts of it especially at the beginning.
I'd divide the main topics like this:
1. The C subset of C++.
2. Object oriented concepts and the core object-oriented features of C++: classes, member functions, encapsulation, data abstraction, "contracts", data hiding, inheritance (some of those words mean more or less the same thing).
3. Other C++ features, especially templates.
4. The C++ template library.
5. If you're going to be writing Windows applications, the Win32 API.
Can't he do the same thing on Windows with console app's?Originally Posted by Varmon
Connect With Us