I am stuck on how to use std::cin to read in an integer, followed by a space, and a String that comes after it.
Here is the store.txt file:
2 Hello how are you
6 Oh no
1 Welcome
5 We are closed
How do I read in a number at the start, followed by a space, and then read in the string after it?
For example, when I cin everything, then when I call the number 2, it will give me the string "Hello how are you".