string name;
char gender;
string address;
cout << "Enter the name : ";
getline(cin,name);
cout << "Enter the gender (M/F) : ";
cin >> gender;
cout << "Enter the address : ";
getline(cin,address);
I don't understand why this skips the input action for the address.