I cant rectify errors in this c++ program made by my friend

/* FUNCTION TO GET THE CURRENT SYSTEM DATE */

void DATE :: CURRENT_DATE(void)
{
struct DATE date:d;
getdate(&d)};
day = d.da_day ;
month = d.da_mon ;
year = d.da_year ;
}


The related class is---

class DATE
{
public :
void EXTEND_DATE(int,int,int) ;
void CURRENT_DATE(void) ;

int day, month, year;
} ;

plz help my compiler DEV C++ doesnt compile it.
Its just a part of that program.
What are you expecting this line to do?
 
struct DATE date:d;
Topic archived. No new replies allowed.