www.pudn.com > 骑士问题.rar > Unit1.h, change:2004-12-25,size:2208b


//--------------------------------------------------------------------------- 
 
#ifndef Unit1H 
#define Unit1H 
//--------------------------------------------------------------------------- 
#include <Classes.hpp> 
#include <Controls.hpp> 
#include <StdCtrls.hpp> 
#include <Forms.hpp> 
#include <ExtCtrls.hpp> 
#include <Graphics.hpp> 
#include <math.h> 
#include <mmsystem.h> 
//--------------------------------------------------------------------------- 
class TForm1 : public TForm 
{ 
__published:	// IDE-managed Components 
        TButton *Button1; 
        TImage *Image1; 
        TEdit *Edit2; 
        TEdit *Edit3; 
        TButton *Button2; 
        TRadioGroup *RadioGroup1; 
        TButton *Button3; 
        TImage *Image2; 
        TMemo *Memo1; 
        TTimer *Timer1; 
        TButton *Button4; 
        TImage *Image3; 
        TLabel *Label1; 
        TEdit *Edit1; 
        TLabel *Label2; 
        void __fastcall FormCreate(TObject *Sender); 
        void __fastcall Button1Click(TObject *Sender); 
        void __fastcall Image1MouseDown(TObject *Sender, 
          TMouseButton Button, TShiftState Shift, int X, int Y); 
        void __fastcall Button2Click(TObject *Sender); 
        void __fastcall RadioGroup1Click(TObject *Sender); 
        void __fastcall Button3Click(TObject *Sender); 
        void __fastcall Timer1Timer(TObject *Sender); 
        void __fastcall Button4Click(TObject *Sender); 
private:	// User declarations 
public: 
       void Travel(); 
       void Move1(); 
       void Move2(); 
       void Move3(); 
       void Move4(); 
       void Move5(); 
       void Move6(); 
       void Move7(); 
       void Move8(); 
       void     End(); 
       Graphics::TBitmap *Bitmap1; 
       Graphics::TBitmap *Bitmap2; 
	// User declarations 
        __fastcall TForm1(TComponent* Owner); 
}; 
//--------------------------------------------------------------------------- 
extern PACKAGE TForm1 *Form1; 
int a,b; 
int i,j,n,k,m; 
struct DataType 
{ int x; 
  int y; 
  int N; 
  int flag[9]; 
}; 
int time1,time2; 
DataType temp; 
DataType A[14][14]; 
DataType B[101]; 
 
//--------------------------------------------------------------------------- 
#endif