#include<stdio.h>
#include<string.h>
void p(char,int);
void p(char b[],int n)
{
int i,c;
c=n/2;
for(i=0;i<c;i++)
{
while(b[i]!=b[n-i-1])
break;
}
if(i==c)
return('yes');
else
return('no');
}
void main()
{
char a[100];
int n;
gets(a);
n=strlen(a);
printf("%s",p);
}
这个算法有什么错误
算法没有错误,主要是语法上的一些问题:
#include<stdio.h>谢谢,你说的都很有道理。我会继续努力的
追答没关系
嗯 谢谢,不过我采纳了第一个回答的人 不好意思、、
本回答被网友采纳