Where to put break; due to user invalid input

Hello I'm new to c++, I'm creating a reservation system for my school project this is kinda a dumb question where should I put break; due to user invalid input. Can't post the whole system because it's too long here is the link below. Thanks

Last edited on
Your link is borked. Remove the angle brackets.

Do not EVER call main() in your code. You can call other functions, but never main().
typically you don't break.

input validation is usually
get value as string
validate input
while (not valid)

the only time you would break or do something odd is like a password, where you might have 3 tries then lock them out or whatever. Do you need that idea?
Topic archived. No new replies allowed.