21点游戏2.0.docVIP

  • 1
  • 0
  • 约9.63千字
  • 约 11页
  • 2016-11-25 发布于河南
  • 举报
21点游戏2.0

/* 对前面的错误进行了部分的修正 */ #includeiostream #includestdlib.h #includestring.h #includefstream #includetime.h #define CLOCK_PER_SEC 1000.0 #define SIZE 54 using namespace std; ////////////////////// //纸牌类的设计 ///////////////////////////////////// class Card { private: char f_color; //牌的花色,H-红心,C-梅花,D-方块,S-黑桃 int num; //牌的数值 public: Card() {} void card(char f,int n) {f_color=f;num=n;} int out_num() {return num;} char out_f_color() {return f_color;} void paimian(); void outpaimian(char ch,char type[]); void outpaimian(int ch,char type[]); }; void Card::outpaimian(char ch,char type[]) //对花色牌面

文档评论(0)

1亿VIP精品文档

相关文档