This code looks simple, right?
string password;
cin.ignore();
getline(cin, password);
cout << "The user inputted the password: " << password << endl;
Well for some reason when i type in "secret" as the password the cout results in only "ecret", i.e. it is chopping off the first character every time. Why is this?