Skip to content

Instantly share code, notes, and snippets.

@akashgangil
Created November 7, 2013 04:58
Show Gist options
  • Save akashgangil/2264da07553a90828e04 to your computer and use it in GitHub Desktop.
Save akashgangil/2264da07553a90828e04 to your computer and use it in GitHub Desktop.
#include<vector>
#define V vector;
typedef V<int> vi;
int main(){
int a[] = {1, 2, 3, 4};
vi b(a, a+4);
for(vi::iterator it = b.begin(); it != b.end(); ++it){
cout << *it;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment