展开全部
char *year[]={"第一学年","第一学年","第二学年","第二学年","第三学年","第三学年","第四学年","第四学年"};
char *term[]={"上 ","下 ","上 ","下 ","上 ","下 ","上 ","下 "};
这样定义就可以了 或者
char year[20][20]={"第一学年","第一学年","第二学年","第二学年","第三学年","第三学年","第四学年","第四学年"};
char term[20][20]={"上 ","下 ","上 ","下 ","上 ","下 ","上 ","下 "};
数组里定义的下标要大于字符串的个数才可以
char *term[]={"上 ","下 ","上 ","下 ","上 ","下 ","上 ","下 "};
这样定义就可以了 或者
char year[20][20]={"第一学年","第一学年","第二学年","第二学年","第三学年","第三学年","第四学年","第四学年"};
char term[20][20]={"上 ","下 ","上 ","下 ","上 ","下 ","上 ","下 "};
数组里定义的下标要大于字符串的个数才可以
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询