[求助]C语言的问题2
#include<stdio.h>void z(char *p);
void main()
{
char num[50];
printf("输入城市名称 \n");
gets(num);
z(num);
}
void z(char *p)
{
int i;
for(i = 0;i < 50;i++)
{
if(*(p + i) == 'xuzhou')
{
printf("我也是");
}
else
{
printf("我不是");
}
}
}
错误: C:\Documents and Settings\Administrator\My Documents\Cpp1.cpp(16) : error C2015: too many characters in constant
Error executing cl.exe.
是什么意思小弟不懂 还望各位指教~!~!~!
谢谢了`!~!~!