-
Add a constant to every element of a vector http://stackoverflow.com/a/4461466
-
Append vector to another vector http://www.cplusplus.com/reference/stl/vector/insert/
-
Copy vector (requires allocation in advance) http://www.cplusplus.com/reference/algorithm/copy/
copy ( myints, myints+7, myvector.begin() );
-
Shuffling a vector http://www.cplusplus.com/reference/algorithm/random_shuffle/
random_shuffle ( myvector.begin(), myvector.end() );
Created
September 24, 2012 13:26
-
-
Save rocarvaj/3775940 to your computer and use it in GitHub Desktop.
C/C++ Notes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment