?? playcards.h
字號(hào):
// PlayCards.h: interface for the CPlayCards class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLAYCARDS_H__211B487A_08B8_477D_883D_2EE5765707F8__INCLUDED_)
#define AFX_PLAYCARDS_H__211B487A_08B8_477D_883D_2EE5765707F8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <set>
/*單張撲克結(jié)構(gòu)*/
struct card{
enum SUIT suit;
enum POINT point;
};
/*牌點(diǎn)枚舉常量*/
enum POINT{TWO=IDB_DIAMAND_02, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, J, Q, K ,A };
/*花色枚舉常量*/
enum SUIT{DIAMOND, CLUB=13, HEART=26, SPADE=39};
class CPlayCards
{
public:
static card m_deck[52];
CPlayCards();
virtual ~CPlayCards();
int m_got_cards[4];
void Draw(CDC*pDC,const CPoint &p,BOOL &shuffle);
BOOL GetResult(CString&str);
std::set<int> m_index_set;
protected:
void Pick_Card();
};
#endif // !defined(AFX_PLAYCARDS_H__211B487A_08B8_477D_883D_2EE5765707F8__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -