hi there, i'm writing a code that takes dates from the user in the form xx/xx/xxxx
and convert it to integer and turn to object that belong to a class called date, and then arrange them in an array of the same class everything is fine but i just cant declare it in the array
here is the class
class Date{
int day;
int month;
int year;
public:
Date();
Date(int day, int month, int year) : day(day), month(month), year(year) {}
int get_day() {return day;}
int get_month() { return month; }
int get_year() { return year; }
};
and the declaration part
Date Exam_dates[3];
Exam_dates[0]() (xx, xx, xxxx)