string passing by value in c++