I have to create a program that will loop a basic menu prompting the user to enter a menu selection. I can not figure out why the program is not looping. I am a new C++ student in college. If anyone can point me in the right direction i would appreciate it.
return 0; in your main function should come after the end of your loop. When there is a 'return' statement is executed inside a function, the program will read the 'return' statement and ignore any code inside that function after the 'return' statement. And due to the fact that your 'return' statement is in your main function, the program skips the code after the 'return' statement (the end of your loop) and ends the entire program.