Skip to content

Instantly share code, notes, and snippets.

@HappyCerberus
Created October 15, 2012 13:37
Show Gist options
  • Save HappyCerberus/3892499 to your computer and use it in GitHub Desktop.
Save HappyCerberus/3892499 to your computer and use it in GitHub Desktop.
Ostream iterator demo
#include <algorithm>
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
int pole[] = { 10, 20, 30 };
ostream_iterator<int> out(cout,", ");
copy(pole,pole+3,out);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment