integer to string:
int a = 10;
stringstream ss;
ss << a;
string str = ss.str();
string to integer:
stringstream convert(p1);
convert>>v;
stringstream conver(p2);
conver>>v2;
cout<<v+v2<<nl;
No comments:
Post a Comment