How did C++ change with the different editions of TC++PL?
(In case you do not know, "TC++PL" stands for "The C++ Programming Language", a book written by the inventor of C++, Bjarne Stroustrup.)
I only have the third edition and was just wondering how C++ looked in the first and second editions. Obviously the third edition is the only one to cover ISO standard C++, but what are the major features that were added to C++ after the first edition was published and after the second edi开发者_Go百科tion was published?
Well, I only have the first and second editions... ;-)
First edition, 1986, didn't yet have exceptions. Iostreams were not templated. All that standard library stuff missing. 328 pages including index.
Second edition, 1991, had exceptions but not yet standard exception class hierarchy. Iostream still not templated. 699 pages including index.
Standardization in 1998 added lots of stuff. Including templatization of iostreams, standardization of exception hierarchy, wholesale inclusion of most of STL in standard library, etc. etc.
Cheers & hth.,
Let Bjarne Stroustrup explain in his own words: A History of C++: 1979−1991
精彩评论