Take the following two lines of code:
for (int i = 0; i < some_vector.size(); i++) { //do stuff }
And this:
for (som
Even better than "telling the CPU what to do" (imperative) is "telling the libraries what you want" (functional).
So instead of using loops you should learn the algorithms present in stl.