* |
In an interactive application we often send information to the screen, or
make requests and expect the user to respond to them, in this case the
ostream needs to be flushed before each input operation |
|||||||||||
* |
||||||||||||
* |
||||||||||||
cin.tie(&cout) |
||||||||||||
* |
The width of an output field can be controlled by calling the width() |
|||||||||||
* |
||||||||||||
cout << width(5) << i << width(4) << j << flush; |
||||||||||||
23 March, 1998 |
Page 5 |