日期:2014-05-17 浏览次数:21303 次
int[] int1 = new int[3] { 1, 2, 3 };
int[] int2 = new int[3] { 4, 5, 6 };
string[] str = new string[int1.Length + int2.Length];
for (int i = 0; i < str.Length; i++)
{
if (i < int1.Length)
{
str[i] = int1[i].ToString();
}
else
{
str[i] = int2[i - int1.Length].ToString();
}
}
for (int j = 0; j < str.Length; j++)
{
Console.Write(str[j] + " ");
}