c#中索引超出数组界限
privatevoidbutton1_Click(objectsender,System.EventArgse){Randomrandom=newRandom();for...
private void button1_Click(object sender, System.EventArgs e)
{
Random random=new Random();
for(int i=0;i<=100;i++)
{
intData[i]=random.Next(101);
this.listBox1.Items.Add(intData[i]);
}
} 展开
{
Random random=new Random();
for(int i=0;i<=100;i++)
{
intData[i]=random.Next(101);
this.listBox1.Items.Add(intData[i]);
}
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询