how to skip input in c++?

i want to make a program that skip input when user don't want to enter the detail like if he don't want to enter email he just press enter and program go to next input question

how i can do that?
Depending on how you are reading the input, you could just check if the user entered the empty string, and if so, move on.
Topic archived. No new replies allowed.