i have some doubt regarding the output at the console.
what we generally have is that the output is written on the console and the cursor moves always forward. But what if in some special case we want to back track the cursor a few characters of lines back and delete(i should say clear) two three characters at the console..
i know that cursor can be moved backward by outputting the scancode for backspace key..but it doesn't clears that character.. for example..
consider that the output written at the console is :
This is a test program_ the underscore sign at the end denotes the cursor...
now if i output the scan code for backspace of do just
cout<<"\b"; then the cursor will come under 'm'...anything output after that will overwrite 'm' but m was not cleared off when i output backspace so how to do that??
is it even possible??