迴文字符串

題目截圖:   思路:   遍歷字符串前半部分,判斷對稱部分是否相等即可。   代碼如下: 1 /* 2 迴文字符串 3 */ 4 5 #include <stdio.h> 6 #include <string.h> 7 #include <math.h> 8 #include <stdlib.h> 9 #include <time.h> 10 #include <s
相關文章
相關標籤/搜索