I have created a simple login system in C++, but I have a problem with it.
I am able to enter username and password but when I want to delete the password (using backspace) it doesn't delete but it prints *.
Check whether "ch" equals to 8 (code of backspace) and print "ch" itself instead of "*" in that case or move the cursor back if you can. something like
with that I am now able to delete (backspace) the password. but the password I have is 6 character and when I delete for example 3 character of it, then retype it, it adds 3 characters to 6 and using strlen() it shows there is 9 character in pass2. but that 3 characters are not printed. It means that it doesn't delete the characters but it only hides it. And even if after deleting the 3 character I hit enter it accepts the password as correct.
Now, how to solve this issue?