How do I make my program restart from the beginning after it the user presses enter after the program is done?
so the "getch();" makes it start at the beggining?
No, placing everything in between 'while(true){ Your Code }' makes it start at the beginning.
getch() just gives you a pause before it restarts.