So I'm creating a virtual ATM for my machine project, and I am stumped on how to display the login screen after an option.
When you run the program, you are prompted to a login screen where you'll have to input your account number and PIN, and after a successful login, you are directed to the main menu which displays all the options you can choose from.
The instructions tell me to create an option that prompts the user to change their ATM PIN, and after a successful change, they will be required to re-login. Right now, my code just returns 0; after changing the PIN.
My question is, after a successful PIN change, how do I redirect the user back to the main menu? (I would also appreciate any recommendations on how to improve my code, thanks!)
Side note: the topics we've currently covered are functions, pointers, conditionals, and iterations.