#include<stdio.h>
#include <string.h>
void z(char *p);
int main (void)
{
char num[50];
printf("输入城市名称 \n");
gets(num);
z(num);
return 0;
}
void z(char *p)
{
char a[] = "xuzhou";
if (strcmp (p,a) == 0)
printf ("我也是;\n");
else
printf ("我不是");
}
就这么简单.