Created
January 22, 2019 07:36
-
-
Save devendranaga/36b6a15248ec92ccce40ec249e35d8b9 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 <iostream> | |
#include <vector> | |
int main() | |
{ | |
std::vector<int> ints; | |
int i; | |
for (i = 0; i < 100; i ++) { | |
ints.push_back(i); | |
} | |
for (i = 0 ; i < 100; i ++) { | |
std::cout << "vector<int>[" << i << "] = " << ints[i] << std::endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment