C/C++ Notes
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() );