how to covert other datatype into string cpp code example Example: change integer to string c++ string str_val = to_string(int_val);