第1个回答 2012-07-03
#include<stdio.h>
int main()
{
void match(char *name[],int n);
int mouth;
char *name[]={"January","February","March","April","May","June","July","August","September","October","November","December"};
printf("请输入月份号:\n");
scanf("%d",&mouth);
match(name,mouth);
return 0;
}
void match(char *name[],int n)
{
printf("%s\n",name[n-1]);
}