8.4 Exception Handling: Constructor 334
8.5 Exception Handling: Inheritance Class Hierarchy 343
8.6 Exception Handling: Destructor 347
8.7
bad_exception, set_unexpected, set_terminate 349
8.8 Guess the Output 351
8.9 Points to Remember 363
8.10 Deep Knowledge Section 364
Exercises
9 Input/Output 372
9.1 Introduction 372
9.2 C++ Input/Output: What, When and Why? 372
9.2.1 Type Safety 372
9.2.2 Extensible I/O Library 373
9.3 C++ Stream Class Hierarchy 376
9.4 C++ Stream Data Formatting 377
9.5 Manipulators 381
9.6 Guess the Output 387
9.7 Points to Remember 389
Exercises
10 File Input/Output 392
10.1 Introduction 392
10.2
fstream Class 394
10.3 Writing into a File 394
10.4 Reading from a File 398
10.5 Random Access 401
10.6 Guess the Output 413
10.7 ...