I have an input file that i make into a string, it looks like this
"1+2+3+45*5*2"
My problem is when i print the string it always prints as single characters
instead of 45 i get 4 5, how do i fix this. heres a small piece of the code.
cout<<string; //string content 1+2+3+45*5*2
int size=string.length();
cout<<string[7]<<endl;
cout<<string[8]<<endl;
output is always 4
5