I made this simple program to mess around with user input.
But whenever I run it, it works fine. Unless I type in more than 1 word, like "hotdog" works fine but "hot dog" only shows up as "hot". Why is this and how do I make it work the way I want it to?Code:#include <iostream> #include <string> int main() { std::cout << "Sentence?: "; std::string input; std::cin >> input; std::cout << "\nYou typed "; std::cout << input; return 0; }