std::cin input with spaces?
#include <string> std::string input; std::cin >> input; The user wants to enter “Hello World”. But cin fails at the space between the two words. How can I make cin take in the whole of Hello World? I’m actually doing this with structs and cin.getline doesn’t seem to work. Here’s my code: struct cd { std::string … Read more