[ fromfile: standardheaders.xml id: standardheaders ]
This book uses a small subset of the Standard Template Library (STL, also called the Standard Library). The standard header files we use are all listed here.
To use these classes and functions effectively, it is useful to know where to look for documentation.
Table B.1 shows us a list of standard header files.
For some header files, there is a man page for the whole file. In other cases, you might find a man page for the individual function also.
If you are using Microsoft Developer's Studio, the documentation for the standard libraries comes with the MSDN documentation.
For other platforms, it helps to have one, but you don't need a local copy of man or the man pages since there are many copies of the documentation[73] available on the web.
Table B.1. Standard Headers
| Header File | Library | man pages |
|---|---|---|
| C++ STL | ||
| string | STL strings type | std::string |
| sstream | stringstream, for writing to strings as if they are streams. | std::stringstream |
| iostream | C++ standard stream library | std::ios, std::iostream |
| memory | C++ memory-related routines | std::bad_alloc, std::auto_ptr |
| C Standard Library | ||
| cstring, string.h | functions for C char* strings | string, strcpy, strcmp |
| cstdlib, stdlib.h | c Standard Library | random, srandom, getenv, setenv |
| cstdio, stdio.h | standard input/output | stdin, stdout, printf, scanf |
| cassert | assert macros | assert |
| Note | |
|---|---|
By default, the C++ Standard Library documentation might not be installed on your system. Search for the string |
| Generated: $Date: 2009-09-08 12:15:32 -0400 (Tue, 08 Sep 2009) $ | © 2009 Alan Ezust and Paul Ezust. |