home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ for Dummies (3rd Edition)
/
C_FD.iso
/
README.TXT
< prev
Wrap
Text File
|
1998-04-16
|
2KB
|
47 lines
CD-ROM and software copyright (C) 1998 IDG Books Worldwide, Inc.
All rights reserved. Individual programs are copyrighted by their
respective owners and may require separate licensing. This CD-ROM
may not be redistributed without prior written permission from
the publisher. The right to redistribute the individual programs
on the CD-ROM depends on each program's license. Consult each
program for details.
------
Installation instructions
The files contained on this disk represent the programs contained in
the book "C++ for Dummies", Third Edition, by Stephen R. Davis,
published by IDG Books, copyright 1998.
The folders on this disk represent the chapters in the book with
the programs numbered sequentially within the chapter. To install
this diskette, simply copy the contents of the floppy disk into
an appropriately named directory on your hard drive, or run the
self extractor, C__FD.EXE.
Note:
A change to the C++ standard generated a compiler error in many of
the example programs contained in earlier editions of this book.
The problem occured in the following situation:
for (int i = 0; i < 10; i++)
In the earlier standard, when defined this way the variable i remains
in scope even after the for loop. This is how Microsoft Visual C++
4.x and Borland C++ 4.5 and earlier interpret the standard.
In the newer version of the standard, the scope of the variable i is
limited to the for loop. This is the way the current versions of both
Microsoft C++ and Borland C++ work.
This problem has been fixed in the programs on the disk, however,
by converting the previous example into the following:
int i;
for (i = 0; i < 10; i++)
This works in all versions of the standard.
I have attempted to make sure that this change is reflected within
the text of the book itself.