摘要: static bool IsPalindrome(string s) { if (num >= s.Length - num - 1) { return true; } else if (s[num] == s[s.Length - num - 1]) { num++; // 全局变量 IsPalindrome(s); return true; } else { return false; } } 阅读全文
posted @ 2011-02-15 17:14 kntao 阅读(208) 评论(0) 推荐(0)