My program is working fine but I need to stop it when the user presses enter and I haven't been able to figure out how to do that. Any help would be much appreciated!
You can create another thread with cin.get function. When you press ENTER the code will go further and close main, if you set so. You can use <thread> header and std::exit.