回文2输入字符型进行判断
int huiwen(char *s)
{
char *p = s;
while(*p)
p++;
p--;
while(s<p)
{
if(*s != *p)
return 0;
s++;
p--;
}
return 1;
}
int main()
{
char s[100];
gets(s);
printf("%d",huiwen(s));
}