I want the user to enter the day, month and year in a dd/mm/yyyy format.
But what i've written doesn't seem to work.
char d; char m; char y; cout << "Day:"; gets(d); cout << "Month:"; gets(m); cout << "Year:"; gets(y);
In the output, it doesn't stop for Day, Goes for month.. and suddenly program crashes at Year. Any Help?