Skip to content

Instantly share code, notes, and snippets.

@kurenaif
Last active December 25, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurenaif/7054833 to your computer and use it in GitHub Desktop.
Save kurenaif/7054833 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> v = {1, 2, 3, 4};
for (auto x : v)
{
cout << x << endl;
}
system("pause");
return 0;
}
/*
Output
1
2
3
4
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment