I have a string and I need to add a number to it ie int. as:
string number1 = ("dfg");
int number2 = 123;
number1 += number2;
this is my code:
name = root_enter;
size_t sz;
sz = name.size();
name.resize (sz + 5, account);
cout << name;
this works ... somewhat, but I only get "* name * 88888" and ... I don't know why. I just need a way to add an int value to the end of the line
source
share