回复 2楼 QJlin
没关系,感谢您
private void button5_Click(object sender, EventArgs e) { int Number = Convert.ToInt32(Num14.Text); Number = int.Parse(Num14.Text); Matix2 = GenerateRandom(0, Number - 1); Matix3 = GenerateRandom(0, result3 - 1); Num15.Text = ""; Num16.Text = ""; Num15.Text = String.Format("{0}", Matix3[0]); if(ConnectLinesTable[] == 1) for (int variable1 = 0; variable1 < Number; variable1++) { Num16.Text += String.Format("{0}" + Environment.NewLine, Matix3[0]); for (int variable2 = 0; variable2 < result3; variable2++) { Num16.Text += String.Format("-" + "{0}" + Environment.NewLine, Matix2[result3]); } }