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

📄 thdcalcq.h

📁 八皇后问题
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef thdCalcQH
#define thdCalcQH
//---------------------------------------------------------------------------
#include <Classes.hpp>

#include "pLib.h"
#include "Main.h"
#include "QStack.hpp"
//---------------------------------------------------------------------------
class TthdCalc : public TThread
{            
private:
    bool PAnimate;
    bool ErrAnimate;
    int AniSpeed;
    TPicture *WQueen;
    TPicture *GQueen;
    TPicture *WErrQ;
    TPicture *GErrQ;
    TPicture *WPoint;
    TPicture *GPoint;

    QPoint __fastcall TellGrid(const int X,const int Y);
    void __fastcall ShowChessMan(void);
    void __fastcall PutChessMan(const QPoint &Grid,const QImage myImage,bool isQ =false);
    void __fastcall AnimateError(const QPoint &FromGrid,const QPoint &ToGrid);
    void __fastcall EnableNewQueen(void);
    void __fastcall CopyQueens();

protected:
    void __fastcall Execute();
    void __fastcall OnTerminate();

public:
    QStack Queens;
    
    __fastcall TthdCalc(bool CreateSuspended);
};
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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