程序代码:
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]);
}
}
想请问现在我节点的攻击端(起始点)是可以依照我想要多少个就有多少个,code部分是想印出的路径,可是想了很久都无法实现,可请各位大神们帮个忙
感谢!!
[
本帖最后由 QTHTQ 于 2013-6-18 11:09 编辑 ]