2012年3月20日
摘要: string test= "abcdefgh";1. 字符串倒序读取 string result = string.Empty; for (int i = test.Length - 1; i >= 0; i--) { result += test[i]; }2. 二分法转换 string result = string.Empty; char[]arrTest = test.ToCharArray(); for (int i = 0; i < arrTest .Length / 2; i++) { char temp = arrTest [i]; arrTes 阅读全文
posted @ 2012-03-20 09:07 thankyou 阅读(187) 评论(1) 推荐(0)