string test;
test="3527523";
int a=test[3];
std::cout<<a<<std::endl;
I was expecting output to be number 7, but I got 55 instead. I have searched through different posts, they all used this method without any problems.. I just don't know where the problem is in my case. Thank you for your help!