Changes Made from the Second Printing to the Third
Appendix D
Page |
Line |
Change |
To |
835 |
Between 1st and 2nd sentence |
Insert new 2nd sentence |
As noted in the text, the header files of these libraries have been renamed in standard C++ by prepending a c to their names and dropping the .h extension. |
|
1st library heading |
assert.h (OR cassert) |
cassert (formerly assert.h) |
|
2nd library heading |
ctype.h (OR cctype) |
cctype (formerly ctype.h) |
836 |
1-4T |
Replace 2nd column |
Returns lowercase equjivalent of c (if c is uppercase)Returns uppercase equjivalent of c (if c is lowercase) |
|
1st library heading |
float.h (OR cfloat) |
cfloat (formerly float.h) |
|
2nd library heading |
limits.h (OR climits) |
climits (formerly limits.h) |
|
3rd library heading |
math.h (OR cmath) |
cmath (formerly math.h) |
837 |
Library heading |
stdlib.h (OR cstdlib) |
cstdlib (formerly stdlib.h) |
Answers to Quick Quizzes
Page |
Line |
Change |
To |
847 |
Quick Quiz 2.2: #13 |
'\n' |
const |
|
Quick Quiz 2.2: #34 |
gravity |
GRAVITY |
849 |
Quick Quiz 3.2: #11 |
math.h |
cmath |
Additions/Corrections to Index
algorithm library, 562
Standard Template Library (STL), 559, 562
ANSI/ISO C++ Standard Draft Working Paper DELETED
Add
valarrays to the See also list 14 lines from end of 3rd columnbasic_ios
, 217basic_istream
, 217basic_ostream
, 217basic_string
, 217boolalpha
manipulator, 226, 501c_str()
string operation, 470cerr
, 223, 468cin
, 9, 223, 468clear()
, 356, 491, 495, 499clog
, 223Complex number, 647
Computing curricula 1991 Report DELETED
const_cast
, 80cout
, 5, 8, 9, 223, 468C-style arrays
non-OOP approach, 537-38
array input DELETED
array output DELETED
object-oriented approach, 538-40
problems with, 537
data()
string operator, 470dec
manipulator, 226, 501dice4.cpp
, 255-56dynamic_cast
, 80Empty
vector<string> DELETEDendl
manipulator, 109, 226, 501erase()
, 241, 566, 802-4failuretime11.cpp
, 360-61Files
fstream objects DELETED
streams, 468-86, 491-504
File streams 468-86, 491-503
former entries undef fstream objects go here
manipulators
requiring arguments, 502-3
without arguments, 501-2
peek()
, 491, 497-99putback()
, 491, 499seekg()
, 491, 493-95seekp()
, 491, 497setstate()
, 491, 499-501tellg()
, 491, 496-97tellp()
, 491, 497fstream
, 105, 469hex
manipulator, 226, 501ifstream
Replace See also with See also file streams
internal
manipulator, 226, 501iomanip
library, 111, 142ios::eofbit
, 491, 501ios::failbit
, 491, 501iostream
class, 105iostream
library, 5, 78-79, 111, 142, 501istringstream
class, 105left
maniuplator, 226, 501lexical analysis, 497
lexical analyzer, 497
manipulators
requiring arguments, 502-3
without arguments, 501-2
namespace, 33, 39, 418-19
noshowpoint
manipulator, 226, 501noshowpos
manipulator, 226, 501noskipws
manipulator, 222, 226, 501npos
, 242-243 (replaces NPOS)null character, 470
numeric
library, 562-4oct
manipulator, 226, 501ofstream
objectsReplace See also with See also file streams
ostringstream
class, 105output expressions
output formatting, 111-14, 501-3
output manipulator, 224, 501-3
peek()
, 491, 497-99protected
, 731putback()
, 491, 499qualifying a name, 419
read position symbol DELETED
reintrepret_cast
, 80remove()
DELETEDreplace()
DELETEDright
manipulator, 226, 501scope
of for-loop control variables, 1415-17
name conflicts, 417-18
objects declared outside all blocks, 414-15
seekg()
, 491, 493-95seekp()
, 491, 497setstate()
, 491, 499-501setfill()
manipulator, 502setprecision()
manipulator, 502, 503setstate()
, 491, 499-501setwidth()
manipulator, 502, 503showbase
manipulator, 226, 501showpoint
manipulator, 226, 501showpos
manipulator, 226, 501skipws
manipulator, 222, 226, 501sstream
library, 231static_cast
, 80-81std
, 33strings DELETE
stringstream
, 105, 231tellg()
, 491, 496-97tellp()
, 491, 497Two-pass file processing
program DELETE
type conversions, 75, 80-81
uppercase
manipulator, 226, 501using
declaration, 419using
directive, 419valarray
, 538-40vector, 538
wistream
class, 217wostream
class, 217