c++ delete printed characters

C++
cout<<"\b";
Source

Also in C++: