full code here -
https://linkpicture.com/q/help_5.jpg
So i cant't figure out how tofix my code my code.
It shows error (expected initializer before int) at int day, month, year; line.
void Date::displayDate(){
cout<<month<<"/"<<day<<"/"<<year<<endl;
}
int main()
int day, month, year;
char c;
cout << "Enter a start date: " << endl;
cin >> month >> c >> day >> c >> year;
date start = date(month, day, year);
cout << "Enter an end date: " << endl;
cin >> month >> c >> day >> c >> year;
date end = date(month, day, year);
int duration = end-start;
cout << "The number of days between those two dates are: " << duration << endl;
return 0; }