I am doing this assignment, and there are some stuff (from start-up materials) that I cannot comprehend.
typedef enum
{
NORTH,
EAST,
SOUTH,
WEST,
NUM_POINTS
} Point;
typedef Point Course[NUM_POINTS] ;
I don’t get the idea behind the last line , and how can I use it in the code?
Makes
ban alias for typea, e.g.both
bars are equivalent. In your case,Makes
Coursean alias for typePoint[NUM_POINTS](whereNUM_POINTS == 4), soare equivalent.