< Previous | Contents | Next >
Before I can declare a vector, I have to include the file that contains its definition:
#include <vector>
All STL components live in the std namespace, so by using the following code (as I typically do) I can refer to a vector without having to precede it with std::.
using namespace std;