Hello
So I just started learning how code, currently learning C#. There's a question in my assignment that's confusing me. It goes like this: "Write a program, which creates both a typedef data type named date of original data type int and
an enumerated data type named Month, consisting of the 12 months with JANUARY starting at 1.
Next create a variable of data type date, with a starting value of 15, and a variable of data type
Month, with its initial value to be APRIL." If there's someone can help I would be very appreciated, would be awesome if you have time to provide some explaination under the code, but if you don't, that's ok too. This is what I just started doing:
#include
#include
using namespace std;
int main()
{
int Date;
enum Month
{
January = 1,
February,
March,
April,
May,
June,
July,
August,
September,
October,
November,
December,
};
}

Ruby RzePosted Nov 23, 2021, 1:02 PM
Sachin SinghPosted Nov 23, 2021, 12:18 PM