I don't think that c++ has anything like that. You could possibly use
either a carriage return char(13) (without the line feed) or use backspace
char(8) to backspace your way back to the end of the line (backspace doesn't
remove the character from the screen, it only moves the cursor back you
would have to print a space to remove the char). to go back one char cout <<
char(8) << char(' ') << char(8).
If you're program is going to only run on a PC you can use a bit of assembly
to move the cursor around on the screen. There are a couple of functions
for interrupt 21 that let you control the cursor.
Ali R.
"Koen Janssens" <kg*****@sandia.gov> wrote in message
news:BBE927F3.2E2D%kg*****@sandia.gov...
Can anybody give me an example on how to write a progress indicator in C++
using the standard library cerr or cout?
My problem is I do not know how reset the output stream to the beginning
of the line, so just that information will do fine.
Thanks - Koen