Slide 2.1: Opening and closing files Slide 2.3: Opening and closing files (cont.) Home |
iostream hierarchy of classes (char instantiation): ios_base, ios, istream, ostream, iostream, streambuf, ifstream, fstream, ofstream, filebuf, istringstream, stringstream, ostringstream, stringbuf |
#include <fstream>
fstream
, ifstream
, and ofstream
are defined in fstream
:
#include <iostream>
cin
, cout
, cerr
, and clog
.
#include <cstdlib>
cstdlib
is a general purpose standard C library, including memory allocation, process control, conversions and others.