hi all,
i am having issues with enums so hopefully you guys can help me out
for example
i have
enums verts {id, year, grade};
enum level {ninth, tenth, eleventh, twelth};
typedef struct
{
char id[SIZE];
int schoolyear;
float grades;
} stat;
int main()
{
stat biology[BIOLOGYSIZE]=
{
{"joe", ninth, 3.9}
,{"erica", twelth, 4.0}
,("sam", tenth, 2.0}
};
printstat(biology BIOLOGYSIZE);
}
I am having a hard time wrinting the printstat function. I just want to be able to print out the array. any ideas?
thanks for the help
i am having issues with enums so hopefully you guys can help me out
for example
i have
enums verts {id, year, grade};
enum level {ninth, tenth, eleventh, twelth};
typedef struct
{
char id[SIZE];
int schoolyear;
float grades;
} stat;
int main()
{
stat biology[BIOLOGYSIZE]=
{
{"joe", ninth, 3.9}
,{"erica", twelth, 4.0}
,("sam", tenth, 2.0}
};
printstat(biology BIOLOGYSIZE);
}
I am having a hard time wrinting the printstat function. I just want to be able to print out the array. any ideas?
thanks for the help