#include // include the STL copy function, among others #include // include the STL vector container using namespace std; // import all names from namespace std to avoid repeated scope resolution void main() { vector integers; for (int i=0; i<10; i++) { integers.push_back(i); } // insert 0,1,2,3,4,5,6,7,8,9 into the vector integers vector doubles; copy(integers.begin(), integers.end(), doubles.begin()); }