How to convert an int to string in c++

i have a string and want to append a number at the end of the string…please help
to_string() func not working

Firstly Convert that number to string
How?
Consider int x=10;
Use this syntex
ostringstream str1;
str1 << x;
string x1 = str1.str();

Then append x1 to any string using + operator

Refer this code
https://ide.codingblocks.com/s/60241

Hit like if u get it :slight_smile: