The one issue with your code is this:
Code:
#include <iostream.h>  // Non-standard header
This should be:
Code:
#include <iostream>  // standard header
There really is no such standard header as "iostream.h". If you tried to compile your code with the latest version of Visual C++, or if you have an ANSI conformant compiler, you will get errors that "iostream.h" doesn't exist.

The actual header that all ANSI C++ compilers have is <iostream>. Once you include this, then the <iostream> types are in namespace std, similar to vector.

Regards,

Paul McKenzie