Created
November 7, 2013 04:58
-
-
Save akashgangil/2264da07553a90828e04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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