How can i use string stream (if I can)


#1

Comment body goes here.


#2

int num1;
int num2;
stringstream ss;
ss<<A;
ss>>num1;
ss<<B;
ss>num2;
// this will store string A as integer in num1 and similarly for string B in num2