请教编程语句~~

来源:百度知道 编辑:UC知道 时间:2024/04/28 21:33:41
{
string [] strValue = new string[] {"欢","迎","光","临","FFF"};
int intLoopValue = strValue.Length / 2;
string strTemp = "";
int intLong = strValue.Length -1 ;
for(int intI=0;intI<intLoopValue;intI++)
{
strTemp = strValue[intI];
strValue[intI] = strValue[intLong];
strValue[intLong] = strTemp;
intLong -- ;
}

string strLastValue = "";
for(int intI=0;intI < strValue.Length;intI++)
{
strLastValue = strLastValue + strValue[intI].ToString() + ",";
}
strLastValue = strLastValue.Remove(strLastValue.Length-1,1);
MessageBox.Show(strLastValue);
}

有好心的朋友可以帮忙翻译下每一句的意思吗?
急求
谢谢

请教编程语句~~
悬赏分:0 - 离问题结束还有 14 天 17 小时
{
定义一个字符串数组 放下面5块
string [] strValue = new string[] {"欢","迎","光","临","FFF"};
定义一个int变量是数组长度的一半
int intLoopValue = strValue.Length / 2;
string strTemp = "";
定义一个int变量=数组长度-1
int intLong = strValue.Length -1 ;
for循环,inti从0开始如果他小于数组长度的一半(intLoopValue = strValue.Length / 2),就执行一次for{}里面代码,同事inti+1,再跟intLoopValue = strValue.Length / 2 比较一直到条件不成立
for(int intI=0;intI<intLoopValue;intI++)
{
这是一个3变量互相复制的过程
strTemp = strValue[intI];
strValue[intI] = strValue[intLong];
strValue[intLong] = strTemp;
intLong -- ;
}

string strLastValue = "";
for(int intI=0;intI < strValue.Length;intI++)
{
同样循环
strLastValue = strLastValue + strValue[intI].ToString() + ",";
}
strLastValue = strLastValue.Remove(strLastValue.Length-1,1);
MessageBo