Answer the question
In order to leave comments, you need to log in
How to delay output to a stream in c++?
Help me please.
I wrote like this:
cout <<"Loading ...00%";
sleep(3);
cout<<"\b\b\b99%";
And he does not want to break the stream, so he does not display the first message, makes a delay, and then displays a message with 99 instead of 00
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question