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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 08:07:55
C#中把一句英文句子:mynameisa变成:aisnamemyC#中把一句英文句子:mynameisa变成:aisnamemyC#中把一句英文句子:mynameisa变成:aisnamemystri

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];
}