#include #include #include //for time #include //for copy_n #include "myrand.h" using namespace std; int main() { myrand it = time(0); ostream_iterator os(cout, "\n"); for (int i = 0; i < 10; ++i) { *os++ = *it++; } __gnu_cxx::copy_n(it, 10, os); __gnu_cxx::copy_n(it, 10, ostream_iterator(cout, "\n")); return EXIT_SUCCESS; }