Is it possible on Windows without using WinAPI?
You can also use cin.get() to delete last char
cin.get()