⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qtech.h

📁 使用改进的遗传算法实现简单的高校排课
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef qtechH
#define qtechH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
struct Tec_Cou
{
    int         cls_id;
    AnsiString  cls_name;
    int         cou_id;
    AnsiString  cou_name;
    int         time_num;
    int         room_num;
    int         teac_id;
    AnsiString  teac_name;
}tec_cou1[26], tec_cou2[26];
//---------------------------------------------------------------------------
class TQTechForm : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TLabel *Label7;
        TLabel *Label8;
        TLabel *Label9;
        TLabel *Label10;
        TLabel *Label11;
        TLabel *Label12;
        TLabel *Label13;
        TLabel *Label2;
        TButton *BtQty;
        TEdit *Edit2;
        TEdit *Edit3;
        TEdit *Edit4;
        TEdit *Edit5;
        TEdit *Edit6;
        TEdit *Edit7;
        TEdit *Edit8;
        TEdit *Edit9;
        TEdit *Edit10;
        TEdit *Edit11;
        TEdit *Edit12;
        TEdit *Edit13;
        TEdit *Edit14;
        TEdit *Edit15;
        TEdit *Edit16;
        TEdit *Edit17;
        TEdit *Edit18;
        TEdit *Edit19;
        TEdit *Edit20;
        TEdit *Edit21;
        TEdit *Edit22;
        TEdit *Edit23;
        TEdit *Edit24;
        TEdit *Edit25;
        TEdit *Edit26;
        TEdit *EdCls;
        TADOConnection *ADOConnection1;
        TADOQuery *ADOQuery1;
        TDataSource *DataSource1;
        TADOQuery *ADOQuery2;
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall BtQtyClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TQTechForm(TComponent* Owner);
        int tec_no;
        void __fastcall clearField();
        void __fastcall disp_tec_course();
        int __fastcall tec_course_init();
        int __fastcall get_tec_course_init();
        int __fastcall get_tec_course();
        AnsiString __fastcall getclassname(int class_no);
        AnsiString __fastcall getcoursename(int course_no);
        AnsiString __fastcall getteachername(int teacher_no);
};
//---------------------------------------------------------------------------
//extern PACKAGE TQTechForm *QTechForm;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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