#include #include #include #include #include "date.h" #include "consecutive.h" using namespace std; int main() { const size_t n = 10; int a[10]; generate(a, a + n, consecutive()); copy(a, a + n, ostream_iterator(cout, " ")); cout << "\n"; generate_n( ostream_iterator(cout), 'Z' - 'A' + 1, consecutive('A') //in ASCII, all the uppercase letters ); cout << "\n"; generate_n( ostream_iterator(cout, "\n"), 3, consecutive(date(date::july, 4, 1776)) ); return EXIT_SUCCESS; }