//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include #include #include #include #include #include //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE 管理のコンポーネント TLabel *label1; TLabel *Label2; TLabel *Label3; TEdit *Edit1; TEdit *Edit2; TLabel *Label4; TEdit *Edit3; TLabel *Label5; TEdit *Edit4; void __fastcall FormClick(TObject *Sender); private: // ユーザー宣言 void main(); void exec(); int bitcount(int n); void Pairing(int lower,int upper,int m); void Candidate(); void matching(); void equate(); void xequate(int P); int reduction(); int checkRule(); void printPair(char id[]); void printCS(char id[]); time_t t1,t2; FILE *fid; int result; char str[200]; int tc; int Count; int Color,L,U,S; int biton[32]; int cand[20]; int CS[20][40]; struct par { int lower; int upper; int id; int val; } pair[50]; int pairSize; struct eq { int orig; int after; } equ[20]; public: // ユーザー宣言 __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern TForm1 *Form1; //--------------------------------------------------------------------------- #endif