When you enter a space ' ' while typing into cin, it will take the first string before the space as the first value and the later one as the next.
So let's say we have this code:
cout << "Enter your Name";
cin >> name;
cout << "Enter your age";
cin >> age;
Now, let's say a user enters "John Bill".
It would take his name to be John and his age to be Bill.
Is there a way to:
Have the line automatically change it from a ' ' to a '_'?
Have it so that it will read that line as that line and have the space ' ' read as a normal character?