C#中把一句英文句子:my name is a 变成:a is name my

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/03 01:18:26

C#中把一句英文句子:my name is a 变成:a is name my
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 < strs.Length - 1; i++)
{
newStr = newStr + " " + strs[i];
}