Can anyone suggest me how can stringstream be used here?


#1

Comment body goes here.
string Solution::multiply(string a, string b) {
stringstream ss1,ss2;
ss1<<a;
ss2<<b;
long long int a1; long long int b1;
ss1>>a1;
ss2>>b1;
long long int c=a1*b1;
stringstream res;
res<<c;
string p;
res>>p;
return p;
}

> Blockquote