3
edits
Changes
no edit summary
int(*fptr[3])(int, int){name1, name2, name3};
The better way to validate any attribute is to use functions .
ValidYear = getYear(Year); // Bool function
Check what do functions cin.clear()and others mean .
I like the way the teacher sends the output to the function
bool validCCV(int ccv){ return ccv >= 100 && ccv <= 999; } // Better example of the function above .
-----------------------------------------------------------------------------------------------------------------------