Im getting a problem in the gets function when i put it on a loop. The 1st phase of loop goes well but the second does not do. It skip the 1st cin. Im a beginner and i dont know what to do.
Enter Firstname: Auric
Enter Lastname: Aleuric
Enter Month(Number Only): 11
Enter Date: 12
Enter Year: 95
Auric Aleuric
11/12/95
Enter Firstname: Enter Lastname:
Do not mix operator>> and getline()/gets().
operator>> skips whitespace character from the beginning and leaves them at the end including linefeed.
gets() reads all character to linefeed, which in your case will be first symbol it encountered.