Skip to content

Instantly share code, notes, and snippets.

@devendranaga
Created January 22, 2019 07:36
Show Gist options
  • Save devendranaga/36b6a15248ec92ccce40ec249e35d8b9 to your computer and use it in GitHub Desktop.
Save devendranaga/36b6a15248ec92ccce40ec249e35d8b9 to your computer and use it in GitHub Desktop.
#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