Frustrating..
-
std::getline(cin, somestring, '\n' ) seems to work as cin>>somestring with my Visual C++ 6.0. It sees whitespace as delimiter so i cant get multiword sentence from cin ... Whats wrong?
std::getline(cin,somestring,'\n')
shouldn't stop on whitespace. My guess is that you are misinterpreting the behavior of your program. Could you please post a snippet of code where this anomaly shows? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
std::getline(cin,somestring,'\n')
shouldn't stop on whitespace. My guess is that you are misinterpreting the behavior of your program. Could you please post a snippet of code where this anomaly shows? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
in this member function... void PolishNotation::GetExpression() { cout<<"Insert Expression: "<
-
comments for my previous post: m_strExpression is std::string of course... An idea came across my mind: Maybe its somehow involved with this Bug fix? But it seems highly unlikely... Hannes
I don't think it has to do with that bug --the manifestations are different. I don't know. It beats me. It's so simple I cannot figure out what more to test. Are you 100% sure
m_strExpression
doesn't contain whitespace although you've typed it in? How are you checking the actual value of this variable? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo