Hey guys. Does anyone know how to use typedefs with structs, where they are held in a header file for use in a multi-file linked list project?
I am having trouble getting my head around it as the textbook doesnt give a lot of examples, and the assignment data types to be used contain errors in them.
Here the data types:
#define MaxRaces 5;
#define Maxname 30;
unsigned short Hours;
unsinged short Minutes;
unsigned short Seconds;
typedef char Digit; /* 0..9*/
typedef Digit Sail[ 3+1 ];
typedef char Name[ MaxName + 1 ];
Time Duration[ MaxRaces ];
typedef struct Boat Boat; /*there s a Boat too much I think,but*/
/*not entirely sure why */
. /*there s some more of these data types but it d go on for*/
/*a fair bit longer so I am not gonna post it*/
If anyone could give me a hand in finding my direction I would very much appreciate.