Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

wait function

+3 votes
asked Nov 24, 2022 by AtiTheDev (150 points)
a wait function like wait(9,sec), wait(2,min).

is there one?

1 Answer

0 votes
answered Nov 28, 2022 by Peter Minarik (66,990 points)

It depends on the platform. Unix/Linux and Windows-based operating systems have different sleep functions.

Check this out for C sleep.

For C++, see this post.

commented Nov 30, 2022 by AtiTheDev (150 points)
i am in windows 11 pro
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.