integer to strinf in CPp code example Example: convert int to string c++ int a = 10; stringstream ss; ss << a; string str = ss.str();