1. 将字符串“I am a good man” 输出为:“man good a am I”usingSystem;namespaceConsoleApplication3{classProgram{staticvoidMain(string[]args){stringstr="Iamagoodman";string[]arrayStr=str.Split(''); //将字符串截取后存入数组中Array.Reverse(arrayStr); //反序数组元素foreach(variteminarrayStr){Console.WriteLine(item) Read More
posted @ 2011-06-22 08:33 陈帆 Views(157) Comments(0) Diggs(0) Edit