+ 3

Is there any way to delay in c ++

I searched the net a lot of times but was unable to find the answer could someone please help me??

18th Jun 2018, 6:40 AM
K Nani Goud
K Nani Goud - avatar
5 Answers
+ 1
K Nani Goud it will not work on the playground. there is no simple sleep function in the standard library. you have to use system specific functions such as sleep on windows. maybe you can write your own pause function using the included time functions in c++ such as in the ctime or chrono header, maybe check out chrono::high_resolution_clock
18th Jun 2018, 8:54 AM
Max
Max - avatar
18th Jun 2018, 6:49 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 5
yes if you are using turbo C means u can give delay by using delay() function by including "dos" header file
18th Jun 2018, 6:53 AM
thealoneprogrammer
thealoneprogrammer - avatar
0
But that function sleep doest work
18th Jun 2018, 6:53 AM
K Nani Goud
K Nani Goud - avatar
0
Max thanks thats was probably something to learn
18th Jun 2018, 5:54 PM
K Nani Goud
K Nani Goud - avatar