C語言判斷輸入字符是否爲迴文串

判斷輸入字符串(maxsize=255)是不是迴文串(level,noon即爲迴文串),是則輸出YES,不是輸出NO #include <stdio.h> #include <string.h> #define max 256 int main() { char a[max]; gets(a); int length=strlen(a); for(int i=0;i
相關文章
相關標籤/搜索