C++ how to wait for input at runtime

Electronics Computer Programming Q&A
Post Reply
Carmelita
Posts: 18
Joined: Tue Aug 03, 2021 6:32 pm
Contact:

C++ how to wait for input at runtime

Post by Carmelita » Wed Aug 04, 2021 11:59 pm

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?

wagbow
Posts: 1
Joined: Tue Sep 14, 2021 1:52 am
Contact:

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

Post by wagbow » Tue Sep 14, 2021 2:01 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests