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,
};
}


Sachin SinghRank #66 · 26.2K reputationPosted Nov 23, 2021, 7:18 AM EST
Ruby Rze6 reputationPosted Nov 23, 2021, 8:02 AM EST