ch11cdealer.h

来自「此例子是学习C++的好东西」· C头文件 代码 · 共 33 行

H
33
字号
//Program 11-12   Deal the Cards and Inheritance

//File: Ch11CDealer.h

#ifndef _CH11CDEALER_H
#define _CH11CDEALER_H

#include "Ch11Card.h"
#include "Ch11CPlayer.h"

class CDealer: public CPlayer
{
private:
	Card card[52];
	int index[52];
	int top_card;  // index that points at the top card in the deck
		
public:

	CDealer() ;

	void Shuffle();
	void ShowOrigCards();
	void ShowShuffledCards();
	void Deal4Cards(CPlayer* X);
	int WhereIsTheTop() { return top_card;}

};

#endif


⌨️ 快捷键说明

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