这个C语句错在哪里,帮我看看,char *month_name(int n) { static char *name[]={ "Illegal month","January","February","March","April","May","June","July","August","September","October","November","December" }; return((n12)?name[0]:name[n]); } m
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 00:01:22
这个C语句错在哪里,帮我看看,char *month_name(int n) { static char *name[]={ "Illegal month","January","February","March","April","May","June","July","August","September","October","November","December" }; return((n12)?name[0]:name[n]); } m
这个C语句错在哪里,帮我看看,
char *month_name(int n)
{
static char *name[]={
"Illegal month",
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
};
return((n12)?name[0]:name[n]);
}
main()
{
int i;
for(i=0; i
这个C语句错在哪里,帮我看看,char *month_name(int n) { static char *name[]={ "Illegal month","January","February","March","April","May","June","July","August","September","October","November","December" }; return((n12)?name[0]:name[n]); } m
在VC下可以运行~