I would like the function dateCreate to pass the given parameters to the ones from the struct.
I have tried by having the Date d variable as a function parameter but it still shows me the error "field "day/month/year" could not be resolved".
struct Date{
int day;
int month;
int year;
} ;
Date dateCreate (int d, int m, int y){
 Date d;
 d.day =d;
 d.month = m;
 d.year =y;
return 0;
};
int main() {
 int d,m,y;
 cin << d << m << y;
 cout << dateCreate(d,m,y); //Not completely sure if this is right either.
return 0;
}
I want the function to create a Date type of data from the integers given. Thank you very much.
 
     
     
     
    