Hi, i'm a newbie, and i have a trouble with a program.
The program doesn't work as i desire. This is a little fragment of my program:
//Requesting data from users.
cout<<"\n\nEnter your last name:\n\t";
getline(cin,flast);
cout<<"\nEnter your mother's maiden last name:\n\t";
getline(cin,mlast);
cout<<"\nEnter your first name:\n\t";
getline(cin,name);
When i run the program, it skips the first getline() statement, but runs the other statements perfectly, doing something like that:
Enter your last name:
<--This line is skipped
Enter your mother's maiden last name:
McCoy
Enter your first name:
Paul
Please, help me with this!!!
P.S.: I'm sorry if you can't understand me well, but i speak a little english.