Percents

Hello everybody ! This is a part of code :
cout << "Updating "<< x <<"%" <<endl;
I need that 1 adds to x each 0.1 second and shows through the "cout". How me to do this ?
You'll probably want the <ctime> library.
http://cplusplus.com/reference/clibrary/ctime/
Thank you very much !
It won't be an accurate loading time however, it'll just be made up right? Also consider adding one every .01 seconds s the user isn't stuck waiting 10 seconds on a fake loading screen.
Last edited on
Topic archived. No new replies allowed.