Define a new type called DATE that is a structure consisting of three int fields, dayOfMonth, month and year.

Define a new type called DATE that is a structure consisting of three int fields, dayOfMonth, month and year.

LANGUAGE: C++

CHALLENGE:

Define a new type called DATE that is a structure consisting of three int fields, dayOfMonth, month and year.

SOLUTION:


struct DATE{
    int dayOfMonth, month, year;
};

Add comment