Re: Beginning C++
It might have been. There are some extensions added by compiler writers that aren't language-standard. For example, say I created a C++ compiler and decided to add the non-standard keyword __class_singleton, which would force the specified class to become a singleton (i.e. only one instance possible). If you tried compiling the code on a Microsoft compiler, it'd gag and spit out an error message. If the book was written for Microsoft compilers, but he used a different compiler (or a different version), it wouldn't work.
|