0

Can someone please tell me how to delay in c++?

I have a project where I need text to pop up, then 1 second later another text pops up. Can someone explain how to do this in c++? Thank you!

11th Aug 2018, 9:13 AM
Tiki Turtle
Tiki Turtle - avatar
4 Antworten
+ 4
Don't think you can test this on Sololearn. It wants all input at once and give all results in one go.
11th Aug 2018, 10:00 AM
Paul
Paul - avatar
0
you can use sleep(1); to add delay
11th Aug 2018, 9:54 AM
Ankush Mamidwar
Ankush Mamidwar - avatar
0
this does not work for me
11th Aug 2018, 9:58 AM
Tiki Turtle
Tiki Turtle - avatar
0
thank you ive been getting frustrated about this for nearly an hour lol
11th Aug 2018, 10:01 AM
Tiki Turtle
Tiki Turtle - avatar