|
|
cout << "\b" << " " << "\b";
which should (haven't tested it) move the pointer back one, overwrite it with a space, then move it back again (although if they are on the end of a line or something, it won't work).
cout << "\b" << " " << "\b";
but It doesn't erase the input for password. For example:****** //I typed in abcdef then I hit backspace twice... **** //Then I hit enter and it says abcdef // Instead of abcd |