Need help with beginner level C++. "A user types a word and a number on a single line. Read them into the provided variables. Then print: word_number. End with newline. Example - if user entered Amy 5, the output should be: Amy_5 ." Anyone able to explain how to do this?
Often it is unwanted that cin doesn't read until a newline character, but in stead separates input at the space. For this exercise that's actually very convenient: