I am trying to make a console application which takes you name, and a message and prints it to a .txt file with the time and date. However, if the person enters a name that has more than one word in it, it skips the next question, and when it prints to the .txt file it only prints on word.
std::cin takes input until the first white space. The fellow above me is right, you want to use getline(cin, variable) if you want to get multiple words. But, the default delimiter character of this is the new line character, so keep that in mind.