Created
June 2, 2011 05:27
-
-
Save jl2/1003981 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
#include <string> | |
int main(int argc, char *argv[]) { | |
std::vector<int> bob(1); | |
bob.push_back(20); | |
bob.push_back(bob[0]); | |
for (auto it = bob.begin(); | |
it != bob.end(); | |
++it) { | |
std::cout << *it << "\n"; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment