November 2001
Beginner
1128 pages
29h 12m
English
| 1: | What role does the iostream file play in C++ I/O? |
| A1: | The iostream file defines the classes, constants, and manipulators used to manage input and output. These objects manage the streams and buffers used to handle I/O. The file also creates standard objects (cin, cout, cerr, and clog and their wide-character equivalents) used to handle the standard input and output streams connected to every program. |
| 2: | Why does typing a number such as 121 as input require a program to make a conversion? |
| A2: | Keyboard entry generates a series of characters. Typing 121 generates three characters, each represented by a 1-byte binary code. If the value is to be stored as type int, these three characters have to be converted to a single binary representation ... |