The current version of "C++ for Dummies" is 6th edition.
Click here for errata on the 5th Edition and
here
to go to the errata page for the now dated 4th Edition.
Q:
I get an error message that Code::Blocks can't create the object file. What's wrong?
A: One of two things:
a) Either you are trying to build the files directly on the CD-ROM or
b) You have spaces in the source directory (perhaps you put your project on the desk top)?
Q:
I bought "C++ for Dummies" for Kindle. Is there some place that I can download the programs from the CD-ROM?
A: You can download the C++ source files from cpp_downloads.
The .zip file and the .rar file are both the source files along with the project files to compile them in Code::Blocks.
(They have the same content.) The setup.exe is the version of Code::Blocks for Windows that came with the
book. You can also download just the CodeBlocks that came with the book at
stephendavis.com/CodeBlocks.
You can download other versions of Code::Blocks at CodeBlocks.org.
Page 116:
In the code snippet on top of the page:
nVar = &nVar;
should obviously read
pnVar = &nVar;
Page 151:
The code snippet says:
int i = 2;
cout << "i = " << i << endl;
int nSQ = SQUARE(i++);
cout << "SQUARE(i++) = " << nSQ << endl;
cout << "now i = " << i << endl;
It should start
int i = 3;