[求助]帮忙看下这个程序到底出错在哪
#include <stdio.h> void main()
{struct time
{int hours; int minutes; int seconds;};
struct time a,b;
printf("Enter the hours(0-23);\n"); scanf("%d",&a.hours);
printf("Enter the minutes(0-59):\n"); scanf("%d",&a.minutes);
printf("Enter the seconds(0-59):\n"); scanf("%d",&a.seconds);
b.seconds=a.seconds+1; b.minutes=a.minutes; b.hours=a.hours;
if(b.seconds>59){b.seconds=0;b.minutes++;}
if(b.minutes>59){b.minutes=0;b.hours++;}
if(b.hours>23) b.hours=0;
printf("The next seconds is:\n%d:%d:%d",b.hours,b.minutes,b.seconds);
}
总是编译出错,可是我就是找不出来,帮忙看下,谢谢