// Vec print using ostream_iterator #include // std::cout #include // std::ostream_iterator #include // std::vector #include // std::copy using namespace std; int main () { vector myvector; for (int i=0; i<10; ++i) myvector.push_back(i); ostream_iterator vecOutput(cout, " "); copy(myvector.begin(), myvector.end(), vecOutput); cout<