这个算法是通过将"A","B"存储到索引8和索引9来存储从阵列A到阵列B的字符串我真的开始使B的数组大小为10,因为稍后我会在那里放一些其他的东西.
我的部分代码:
string[] A = new string[]{"A","B"}
string[] B = new string[10];
int count;
for(count = 0; count < A.length; count++)
{
B[count] = A[count]
}
Run Code Online (Sandbox Code Playgroud) c#-4.0 ×1