int isPurePalindrome(const char *sentence){
int i;
if (sentence="")
return 0;
char *begin; char *end; i=strlen(sentence);//i is now the length of sentence string
*begin= &sentence(0);
*end=&sentence[i-1];
我正在使用dev C++。我试图初始化指针“开始”指向字符串“句子”中的第一个字符,但它不断给我一个错误,“赋值使指针没有转换指针的整数”。 “*句子”指向用户在主文件中输入的字符串。 ispalindrome是一种写作功能。假设在main中输入的句子是NULL,则返回0。使用指向字符串的指针初始化指向字符串中的字符的指针
基本上你不会能够编译这个code.compiler投诉字符串比较。并删除后代码应编制在'C99'标准 – 2013-04-09 05:01:01