小编Chr*_*aon的帖子

C#for循环增加2个麻烦

这个算法是通过将"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

12
推荐指数
1
解决办法
7万
查看次数

标签 统计

c#-4.0 ×1