Skip to content

Instantly share code, notes, and snippets.

@wataken44
Created May 8, 2013 13:52
Show Gist options
  • Save wataken44/5540553 to your computer and use it in GitHub Desktop.
Save wataken44/5540553 to your computer and use it in GitHub Desktop.
/*
cpp11_test0.cpp
*/
/*
How to compilie
$ g++ -std=c++0x -Wall cpp11_test0.cpp
*/
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[])
{
vector<int> v = {0, 1, 2, 3};
for(auto it = v.begin(); it != v.end(); ++it) {
cout << *it << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment