CS 150 Introduction to C++ Programming - Spring 1998 |
|---|
[ Home | Lecture Notes| WebTutor | WebTutor Site Map]
Many useful functions have been written and placed in standard libraries for your convenience. These functions perform a variety of frequently used computations which woudl be a pain to have to program over and over again (not to mention the possibility of making a mistake in typing it in). Page 103 in the textbook lists several of the more popular libraries (also see Appendix A). To use a library, you need to include its header file (by convention, header files end in ".h"). Almost every C++ program has the standard IO library and thus contains the statement.
#include <iostream.h>