win32 Overwriting current line in cmd prompt
Hey guys Im creating a win32 program that runs in a DOS box (cmd prompt style) and I am hoping to implement a function that will basically wait for a certain time and out put it to the window.....
Trouble is, I have the time thing sorted but when I output to the screen like this:
cout << timeElapsed;
It will just keep writing it over and over and over again .....
12 27 39 47 59 66 78 89 99 103 etc etc
I want it to output the current time elapsed but I want it to overwrite the previous value without making a new line .... can anyone tell em how to do that please?
So it want it to look like this....
MY TIMER:
Time elapsed: 12
then
MY TIMER:
Time elapsed: 27
etc etc
I DONT want it to write on new lines so I don't want to use endl; cos it looks messy.....
Does anyone know how to achieve this?
Thanks for your help.
aniceguyuk