CMSC202 Lecture Notes for week of April 5
Files used in lectures
Monday's lectures
Wednesday's lectures
During the week of April 5, we discussed the standard IO classes:
C++ uses a poerful, flexible, and mildly complex set of classes for performing
IO. The base class, IOS, is used to derive a number of other classes,
most notably (for our purposes) istream, ostream, iostream, and fstream.
Streams
Programs communicate with the outside world via IO operations. To the
program, a stream is just a bunch of bits that get read or written.
The program is free to make any interpretation it wants of the data
in the stream. That is, the program can read a stream as a bunch of
characters or as binary data.
Previous Lecture
Next Lecture