In mainI give the user the opportunity to enter a command to stop the application:
while( run_processes && cin >> command_line_input ){
I would also like to stop the application elsewhere by installing run_processes = false;.
However, when I set run_processesto false, the above loop does not stop without user input.
How can I interrupt a loop correctly without user input?
user1382306
source
share