Skip to content

Instantly share code, notes, and snippets.

@yifu
Created September 18, 2012 15:09
Show Gist options
  • Select an option

  • Save yifu/3743647 to your computer and use it in GitHub Desktop.

Select an option

Save yifu/3743647 to your computer and use it in GitHub Desktop.
#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
int main()
{
cout << "hello world." << endl;
vector<string> array;
array.push_back("test");
array.push_back("tttt");
copy(array.begin(), array.end(), ostream_iterator<string>(cout, ", "));
cout << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment