#include <stdio.h>
#include <string.h>
int strprint(char *str, int start, int end)
{
if (end <= end)
return 0;
if (str[start] == str[end])
strprint(str, start+1, end-1);
else
return 1;
}
int main()
{
char a[128]="aba";
int ret = 10;
int (*compare)(char *a, int start, int end);
compare=strprint;
printf("the lengh is %d\n", sizeof(compare));
if (!compare(a, 0, strlen(a)))
printf ("this is huishu\n");
else
printf ("not huishu\n");
return 0;
}
回数练习
最新推荐文章于 2020-12-19 04:55:18 发布