access declaration within,
436-438
creating, 279
definition of, 278, 420
inheriting multiple base
classes, 427-428
objects, base class pointers
to, 336-338
Destructor functions, 284-287
execution order for, 317-319
and inheritance, 428-432
difference_type, 859
difftime( ), 746
distance( ), 868
div( ), 758, 761-762
div_t type, 758, 761
divides( ) function object,
673-674
do-while loop, 79-81
domain_error exception, 924
Dot operator (.), 51, 165, 175,
178, 272, 293, 346
double data type, 14, 15
Dynamic allocation, 129-131
functions for, 130-131,
754-755
operators for, 349-359, 754
dynamic_cast, 580-588
E
Early binding, 460
EDOM, 734
#elif directive, 243, 244-245, 248
else, 59
#else directive, 243-245
empty( ), 642, 651
Encapsulation, 258, 265
class as basic unit of, 290
and global variables, 315
how to achieve, 271, 293
end, 790
end( ), 631, 632, 633, 637,
645-647
#endif, 243-245
enum keyword, 180
Enumerations, 162, 180-183
EOF macro, 189, 215, 696
eof( ), 555-557, 565, 622, 791-792
eofbit, 790, 799
equal( )
algorithm, 838
member function, 866
equal_range( ) algorithm, 838
ERANGE, 734, 768, 769
erase( ), 630, 632, 633, 637,
684-685
errno, 696, 734, 768, 769
errno.h header file, 734
Error checking, run-time, 5
#error directive, 241
Errors
pointer problem, 131-135
See also Exception handling
Escape sequences, 33
exception class, 508, 790,
922-923
Exception handling, 350,
490-509
applying, 508-509
and catching all exceptions,
500-502
classes, 922-924
fundamentals, 490-499
and restricting exceptions,
502-504
and rethrowing exceptions,
504-505
<exception> header, 505, 506,
508, 922-923
exceptions( ), 792
Exclusive OR. See XOR
exit( ), 85-86, 150, 492, 762
EXIT_FAILURE, 263, 758, 762
EXIT_SUCCESS, 263, 758, 762
exp( ), 736
explicit specifier, 612-613
export keyword, 487
Expression(s), 53-56
conditional, 58, 66-67
definition of, 14, 53
evaluation order, 53, 65
function calls used in, 64-65,
149-150
parser, 960-993
pointer, 116-120
production rules of, 962-963
statements, 58, 88
tokens, 965
type conversion in, 53-54
extern storage class specifier,
25-27, 615
Extractors, creating, 528,
534-537
F
fabs( ), 737 facet class, 927
fail( ), 565, 792
failbit, 563, 565, 790, 799
failed( ), 868
failure class, 790
false, 39, 58-59, 266
fclose( ), 150, 217, 218-220, 697
feof( ), 220-222, 697
ferror( ), 224-226, 697-698
fflush( ), 227, 698
fgetc( ), 218, 698
fgetpos( ), 698-699
fgets( ), 192, 222, 233, 699
File(s), C
in C I/O system, 213-214
closing, 216
control structure, 213
erasing, 226-227
opening, 215-217, 699-701
pointer, 215, 216
File(s), C++
closing, 544
get pointer, 559, 563
opening, 542-544
put pointer, 559, 563
reading and writing
unformatted and binary,
547-555
reading and writing text,
545-547
FILE data type, 213, 215, 696
File position indicator, 213,
698-699, 704
resetting, 223-224, 711
setting, 229-231
_ _FILE_ _ predefined macro,
248, 250
filebuf class, 542, 786
fill( )
algorithm, 839
member function, 523-524,
792
Index999