This sounds somewhat silly..!...I remember doing this correctly years ago....but but now whenever s is '+' nothing happens.Code:switch (s)
{
case '+':std::cout<<"D";break;
case 'c':std::cout<<"D";break;
}
Does stringstream or linux console input treat the operators differently (compared to characters)...There is aclause before the switch..(in being an input stringstream.)Code:if(in>>s ,s)