26.1. Introduction26.2. Streams26.2.1. Classic Streams vs. Standard Streams26.2.2. iostream Library Header Files26.2.3. Stream Input/Output Classes and ObjectsStream-I/O Template Hierarchy and Operator OverloadingStandard Stream Objects cin, cout, cerr and clogFile-Processing Templates26.3. Stream Output26.3.1. Output of char * Variables26.3.2. Character Output Using Member Function put26.4. Stream Input26.4.1. get and getline Member FunctionsUsing Member Functions eof, get and putComparing cin and cin.getUsing Member Function getline26.4.2. istream Member Functions peek, putback and ignore26.4.3. Type-Safe I/O26.5. Unformatted I/O Using read, write and gcount26.6. Introduction to Stream Manipulators26.6.1. Integral Stream Base: dec, oct, hex and setbase26.6.2. Floating-Point Precision (precision, setprecision)26.6.3. Field Width (width, setw)26.6.4. User-Defined Output Stream Manipulators26.7. Stream Format States and Stream Manipulators26.7.1. Trailing Zeros and Decimal Points (showpoint)26.7.2. Justification (left, right and internal)26.7.3. Padding (fill, setfill)26.7.4. Integral Stream Base (dec, oct, hex, showbase)26.7.5. Floating-Point Numbers; Scientific and Fixed Notation (scientific, fixed)26.7.6. Uppercase/Lowercase Control (uppercase)26.7.7. Specifying Boolean Format (boolalpha)26.7.8. Setting and Resetting the Format State via Member Function flags26.8. Stream Error States26.9. Tying an Output Stream to an Input Stream26.10. Wrap-UpSummarySection 26.1 IntroductionSection 26.2 StreamsSection 26.3 Stream OutputSection 26.4 Stream InputSection 26.5 Unformatted I/O Using read, write and gcountSection 26.6 Introduction to Stream ManipulatorsSection 26.7 Stream Format States and Stream ManipulatorsSection 26.8 Stream Error StatesSection 26.9 Tying an Output Stream to an Input StreamTerminologySelf-Review ExercisesAnswers to Self-Review ExercisesExercises