[c++] How can I change the value of the elements in a vector?