回文字符串递归:C/C++回文字符串

/*回文:回文就是正读反读都一样的字符串, 例如:"radar","able was i ere i saw elba" 和 "a man a plan a canal panama"(如果忽略空格)。 请编写递归函数testPalindrome,在数组中的字符串为回文时返回true,否则返回false。 函数忽略字符串中的空格和标点符号。 */ #include stdio.h /* 字符串 一... [阅读全文]
1 共1条 分1页