111,120
社区成员
发帖
与我相关
我的任务
分享string str = "i am a student ";
string[] temp = str.Split(' ');
for (int i = temp.Length - 1; i >= 0; i--)
{
Console.Write("{0} ", temp[i]);
}
Console.Read();
string s = "I am a student";
string[] words = s.Split(' ');
Array.Reverse(words);
string result = string.Join(" ", words);