Why doesn't std::noskipws work, or what is it supposed to do?
问题 First off my understanding is that cin >> std::noskipws >> str; should stick a whole line from cin like "i have spaces" into str . However this only puts "i" into str . This could be a false assumption in which case what does std::noskipws do? I know there is a function std::getline and that does work but simply for educational purposes I decided I would try to get std::noskipws to work for me. I have tried in the past and it just never works so I normally move on and use std::getline . What