How do you do the input validation for date?
I used:
char rec.date[SIZE];
cout<<"date"<<endl;
cin.getline(date,SIZE);
I want the user to write in this format (mm/dd/yy)
Thanks.
I'm not aware of any standard libraries but one way would be to read the input as a std::string and parse it character-wise.
I am not familiar with that. Is there a way using c-string?