hello i am trying to create an appended string
int i = 5;
char * ch = 3;
string st;
can i do....
st += ch;
st += i;
that is, append a integer or another data type to a string like this..
i know i can use sstream to do this but i need to be able to use string.
cheers
int i = 5;
char * ch = 3;
string st;
can i do....
st += ch;
st += i;
that is, append a integer or another data type to a string like this..
i know i can use sstream to do this but i need to be able to use string.
cheers