addtestdata.cs

来自「使用C#实现的决策树算法实例」· CS 代码 · 共 60 行

CS
60
字号
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 + =
减小字号Ctrl + -
显示快捷键?