试编一函数判断字符串是否为回文.如果则函数值返回1.不然返回0.

#include <stdio.h> #include <string.h> int fun( char const * ptr, int j) {      if(j> 50)     {          return 0;     }     int i;     i= 0;      while(i<j)     {         printf( "%c\n",ptr[j]);     
相关文章
相关标签/搜索