Question : How do I put integers into a string?

Is this right?

intX = 1;
intY= 2;
stringstream ss;;
string s;

ss << intX << " , " << intY;
s = ss.str();

should the output of s be: 1,2?

Answer : How do I put integers into a string?

Yes.
Random Solutions  
 
programming4us programming4us