Ok, here is what I have for my compareDates() function in my class:
int Date::compareDates(int m, int d, int y)
{
if((month < m) || (day < d) || (year < y))
cout << "This date comes before previous valid date." << endl;
else if((month == m) || (day == d) || (year == y))
cout << "This date is the same as the previous valid date." << endl;
else
cout << "This date comes after previous valid date." << endl;
return 0;
}
It keeps returning "This date is the same as the previous valid date". I'm assuming that it is initializing it to itself or what it just read in from the file. Any quick fixes?