Page 1 of 1

C++ how to wait for input at runtime

Posted: Wed Aug 04, 2021 11:59 pm
by Carmelita
Normally with getchar and scanf, etc., the program will stop and wait for input. How can I run other functions while waiting for user input?

Re: C++ how to wait for input at runtime

Posted: Tue Sep 14, 2021 2:01 am
by wagbow
when you run the program and scanf or getchar function running for input that time other functions never running till user input won't be completed, if you wanna run all function at a time then you must be input manually in the program, never use scanf or getchar. Remember C and CPP program compile line by line.