📄 addtestdata.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DecisionTreeAlgorithm;
using DecisionTree;
using System.Collections;
namespace DecisionTreeAlgorithm
{
public partial class AddTestData : Form
{
//struct Item
//{
// public int ID;
// public ageType age;
// public incomeType income;
// public studentType student;
// public creditRatingType creditRating;
// public buysComputerType buysComputer;
//}
//private ArrayList attributeList;
//public AddTestData()
//{
// InitializeComponent();
//}
//private void AddTestDate_Load(object sender, EventArgs e)
//{
// cbAge.Items.Add("youth");
// cbAge.Items.Add("middle_aged");
// cbAge.Items.Add("senior ");
// comboBox2.Items.Add("low");
// comboBox2.Items.Add("medium");
// comboBox2.Items.Add("high");
// comboBox3.Items.Add("yes");
// comboBox3.Items.Add("no");
// comboBox4.Items.Add("fair");
// comboBox4.Items.Add("excellent");
// comboBox5.Items.Add("yes");
// comboBox5.Items.Add("no ");
// comboBox5.Items.Add("");
//}
//private void button1_Click(object sender, EventArgs e)
//{
// Item testItem = new Item();
// testItem.age = cbAge.SelectedValue;
// testItem.student = comboBox2.SelectedValue;
// testItem.income = comboBox3.SelectedValue;
// testItem.creditRating = comboBox4.SelectedValue;
// testItem.buysComputer = comboBox5.SelectedValue;
//}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -