0
我嘗試製作一個神經網絡。
我嘗試使用一個按鈕創建一個nn並在第二個位置讀取它,但我不知道如何將本地變量發送到第二個按鈕。在一個按鈕中創建類名併發送到第二個按鈕
private void pokaz_Click(object sender, RoutedEventArgs e)
{
int[] cos = { Int32.Parse(a1.Text), Int32.Parse(a2.Text), Int32.Parse(a3.Text) };
siecneuronowa net = new siecneuronowa(cos);
}
private void Button_Click_3(object sender, RoutedEventArgs e)
{
for (int i = 0; i < net.wagi.Length; i++)
{
for (int j = 0; j < net.wagi[i].Length; j++)
{
for (int k = 0; k < net.wagi[i][j].Length; k++)
{
diagnoza.AppendText(net.wagi[i][j][k].ToString("R"));
diagnoza.AppendText(" ");
}
diagnoza.AppendText("\r\n");
}
}
}
使其成爲該類的成員。 –
班級的私人成員應該工作 –