Ali R. said:
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).
Just a comment: code-independent names of those characters are \r
and \b, respectively. They are only 13 and 8 in ASCII, and ASCII
is not the only code around. And not on all systems they produce
the described effect, mind you.
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.
Being on PC is not enough for that. You're apparently talking of
[MS-]DOS, a horribly outdated and notoriously dangerous platform,
or any of its emulators. Perhaps you should move your discussion
to comp.os.msdos.programmer...