erase

Is there a charachter or a function that can erase something printed on the screen?
Last edited on
'\b' is the backspace character
cout << "Hello\b\b\bWorld"; will produce HeWorld
Last edited on
is there a fuction that erases the whole screen?
You would have to use external libraries as Windows API, curses or others
I just need a function that erases the screen, It''s just one simple function that I've been told of but I don''t know it's name.
There is a built-in way but that is a bad way,
Read here: http://msdn.microsoft.com/en-us/library/ms682022.aspx
The 1st example is the easy way that code is bad ( as you can see from void main() )
The second example is a bit more complicated but it's better
Last edited on
Topic archived. No new replies allowed.