Hey everyone, im simply trying to get the user to enter the new username when creating a new account. Then, appending that information into the text file. My program does take the info and store it into the txt file. However, the problem is that the user's input does not show on the screen...
Also it counts backspace as a character and requires the user to press enter 2 times.
cout<<"Please enter the following information to confirm your identity!"<<endl;
cout<<"Enter your current username: ";
currentpass=getpass("Enter your current password: ",true);
//confirms the user's identity, allows the user to create a new account
cout<<"\nEnter the new username: ";
cin>>newuser;//This is the problem
newpass=getpass("\nEnter the new password: ",true);
//opens the text file
//appened the new account info into the text file
//closes the text file