prog_ui.h

来自「用遗传算法解决01背包问题」· C头文件 代码 · 共 43 行

H
43
字号
//---------------------------------------------------------------------------

#ifndef prog_uiH
#define prog_uiH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class Tform_main : public TForm
{
__published:	// IDE-managed Components
        TButton *btn_open;
        TButton *btn_ga;
        TButton *btn_greedy;
        TMemo *text_result;
        TButton *btn_save;
        TOpenDialog *dlg_open;
        TEdit *t_ng;
        TLabel *l_ng;
        TEdit *t_mp;
        TLabel *l_mp;
        TCheckBox *cb_sp;
        TLabel *l_ngene;
        TEdit *t_ngene;
        TSaveDialog *dlg_save;
        TLabel *l_co;
        TEdit *t_co;
        void __fastcall btn_openClick(TObject *Sender);
        void __fastcall btn_gaClick(TObject *Sender);
        void __fastcall btn_greedyClick(TObject *Sender);
        void __fastcall btn_saveClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall Tform_main(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE Tform_main *form_main;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?