将“to be or not to be”反转成“ot eb ro ton ot be”
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string a = "to be or not to be"; string[] b = a.Split(' ');//按空格截取,截取结果为{"to","be","or","not","to","be"} char q; foreach (string i in b)//遍历数组b { char[] d = i.ToCharArray();//将字符串数组转化为字符数组 for(int j=0;j