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

📄 diffunit.cpp

📁 一个麻将程序。我的。
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "diffUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Tdifficult *difficultf;
//---------------------------------------------------------------------------
__fastcall Tdifficult::Tdifficult(TComponent* Owner,int &diff)
    : TForm(Owner),difficult(diff)
{
}
//---------------------------------------------------------------------------

void __fastcall Tdifficult::FormCreate(TObject *Sender)
{
    switch(this->difficult)
    {
    case 3:
        RadioButton1->Checked=true;
        break;
    case 2:
        RadioButton2->Checked=true;
        break;
    case 1:
        RadioButton3->Checked=true;
        break;
    }

}
//---------------------------------------------------------------------------
void __fastcall Tdifficult::FormClose(TObject *Sender,
      TCloseAction &Action)
{
    if(RadioButton1->Checked)
         this->difficult=3;
    if(RadioButton2->Checked)
         this->difficult=2;
    if(RadioButton3->Checked)
         this->difficult=1;

}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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