📄 umain.h
字号:
//---------------------------------------------------------------------------
#ifndef uMainH
#define uMainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TPanel *pnl1;
TPanel *pnl2;
TPanel *pnl3;
TPanel *pnl4;
TPanel *pnl5;
TLabel *lbl1;
TLabel *lbl2;
TLabel *lbl3;
TLabel *lbl4;
TLabel *lbl5;
TEdit *edt1;
TEdit *edt2;
TEdit *edt3;
TEdit *edt4;
TPanel *pnl6;
TBitBtn *btn1;
TPanel *pnl7;
TBitBtn *btn2;
TBitBtn *btn3;
TLabel *lbl6;
TLabel *lbl7;
TLabel *lbl8;
TLabel *lbl9;
TOpenDialog *dlgOpen1;
TListView *lv1;
TListView *lv2;
TListView *lv3;
TEdit *edt5;
TEdit *edt6;
TEdit *edt7;
TEdit *edt8;
TEdit *edt9;
TEdit *edt10;
TEdit *edt11;
TEdit *edt12;
TEdit *edt13;
TEdit *edt14;
TEdit *edt15;
TEdit *edt16;
TEdit *edt17;
TEdit *edt18;
TEdit *edt19;
TLabel *lbl10;
TLabel *lbl11;
TLabel *lbl12;
TLabel *lbl13;
TEdit *edt20;
TEdit *edt21;
TEdit *edt22;
TLabel *lbl17;
TEdit *edt23;
void __fastcall btn1Click(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall btn3Click(TObject *Sender);
void __fastcall btn2Click(TObject *Sender);
private: // User declarations
float Dist(float* w, float* x); //判别函数
//void Iteration(); //用迭代法计算权向量
float Pattern[150][4];//模式样本
float PatternExpand[150][5];//模式扩展样本
float w1[5];
float w2[5];
float w3[5];
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -