数组中的一个棘手问题
#include<stdio.h>#define week_day 7
#define name_len 10
char weekday[week_day][name_len]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
int main()
{
char course_name[20];
int days;
char time[6];
int i;
scanf("%s",course_name);
scanf("%s",&days);
scanf("%s",time);
for(i=0;i<week_day;i++)
printf("%10s",weekday[i]);
printf("\n%s",time);
for(i=0;i<10*days;i++)
printf(" ");
printf("%s\n",course_name);
return 0;}
能不能逐句分析一下,有点不理解