so i have this.. and im trying to basically get a character from the user, 1 at a time and input it to a string. i am doing it this way so that the user still has the option to press the Escape key and have it jump back to another page. I have this so far and it seems right but i have no clue what i did wrong. it starts with asking the user to enter their name
(in the format lastname, firstname) *i specifically want the comma space*
followed by a do-while loop that inputs a char and outputs it on the screen, and then goes through a series of "if" statements to see if the user inputted certain keys. to exit this first loop, the user must input a comma, which then should begin the next loop using the same do-while loop, except this time to exit it they must push the Enter key... except when they enter the enter key it just returns to the beginning of the line and the cursor is on the C in Customers Name >:[
any idea what i did wrong?
Rather than using __getch() to identify delimeters, then mixing that with cin to complete the read, why not just use __getch() in a loop to read the whole line yourself and forget about cin?