作业帮 > 综合 > 作业

C语言程序改错简单速度进

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/10 15:51:55
C语言程序改错简单速度进
#include
int main()
{
int x;
char *p[12]={"January","February","March","April","May","June","July","August","September","Octomber","November","December"};
char **q=p;
printf("请输入一个月份号:\n");
scanf("%d",&x);
printf("月份名称为%s.\n",**(q+x-1));
return 0;
}
上面程序功能是输入一个数字月份,输出对应的英文月份
C语言程序改错简单速度进
printf("月份名称为%s.\n",*(q+x-1));
多个星