C#中把一句英文句子:my name is a 变成:a is name my
问题描述:
C#中把一句英文句子:my name is a 变成:a is name my
答
string str = "my name is a";
string[] strs = str.Split(' ');
string newStr = strs[3];
for (int i = 0; i {
newStr = newStr + " " + strs[i];
}