Normally I agree with what Sam posts, but in this case IQuote:
Honestly, I have not seen any documentation or tutorial
available online (available free) that is as useful as the
documentation of the C language and of the rest of the C++
language.
disagree that most programmers can effectively learn
"the rest of the C++ language" from on-line (available free)
documentation. Certainly not from MSDN (in my opinion).
MSDN gives the syntax, but has very little info on C++ design.
(I admit, that the flaw might be with me, and not MSDN - I'm
certainly not a programming expert and using MSDN to learn
C++ might just be beyond my capabilities. Maybe real computer
programmers can.)
Look at the following code posted by a "stl-basher" in the
Visual C++ forum. He claimed that it was a great design.
However, the design is flawed - and flawed in a very basic way.
But I doubt that looking at MSDN will show why. (I spent about
30 minutes searching MSDN and could not find anything ...
maybe its there and I missed it.) And public inheritance is
basic to the C++ language.
What is the difference between public and private inheritance,Code:class CUpperCaseString : public CString
{
public:
CUpperCaseString(LPCSTR szString)
: CString(szString)
{
MakeUpper();
}
virtual ~CUpperCaseString()
{
}
};
and when/why would you ever use private inheritance? I
searched for that in MSDN and came up empty. Again, maybe its
there somewhere.
Pretty much look at any of the points in Meyers Effective C++
books. I have not found on-line documentation that covers the
majority of them in proper detail.
Personally, I don't even think the documenation for the MFC
classes is any good. I have never found any complexity
guarentees on performance for the various functions. About all I
can find is that "inserting into a CArray is slow" and
"inserting into a CMap is fast". I agree with both those
statements in GENERAL, but I can also show examples where
the statements are not true. And while performance is not an
issue in all programs, it is certainly an issue and many codes.
Some on-line sites that I find useful (both STL and C++ in general)
http://www.josuttis.com/libbook/idx.html
http://www.gotw.ca/gotw/
http://www.aristeia.com/publications_frames.html
and not leave out MSDN ...
http://msdn.microsoft.com/library/de...tml/SAMPLE.asp
http://msdn.microsoft.com/msdnmag/is...L/default.aspx
