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


Last Modified: 8 Apr 1999 11:22:08 EDT by Mitch Edelman edelman@cs.umbc.edu

Back up to Spring 1999 CMSC 202 Section Homepage