新手想问问问题出在哪了
这是file.h文件#include<stdio.h>
#include<file2.h>
struct month
{int number;
char english_name;
int days;
}mon[12];
enum english_month{January,February,Marcy,April,May,June,July,August,September,October,November,December};
enum month_englishname;
month_englishname=Februar
这是file.h的文件
void main()
{int i;
for(i=1;i<=12;i++)
{mon[i-1].number=i;
switch(month_englishname)
{case January:mon[i-1].english_name=January;
break;
case February:mon[i-1].english_name=February;
break;
case Marcy:mon[i-1].english_name=Marcy;
break;
case April:mon[i-1].english_name=April;
break;
case May:mon[i-1].english_name=May;
break;
case June:mon[i-1].english_name=June;
break;
case July:mon[i-1].english_name=July;
break;
case August:mon[i-1].english_name=August;
break;
case September:mon[i-1].english_name=September;
break;
case October:mon[i-1].english_name=October;
break;
case November:mon[i-1].english_name=November ;
break;
case December:mon[i-1].english_name=December;
break;
}
month_englishname++;
if(i%2==0)
mon[i-1].days=31;
else mon[i-1].days=30;
mon[1].days=28or29;
printf("月份 英语名 天数\n");
printf("%d\t\t%s\t\t%s\n",mon[i-1].number,mon[i-1].english_name,mon[i-1].days);}}
请问大家这个程序问题出在哪了?