H 头文件,
cpp 执行文件 //Card
h class Player; void gotoxy(int x,int y); class Card { private: int amount; char color; //3 red 4 square 5 plum 6 black Card * pcard; public: Card():amount(14),color(3){} void set(int ,char); void show(int x=0,int y=0); //横着输 // void print(int =0,int y=0); // 背面 show 正面 print 背面 stand 竖的 line 封底 // void showstand(int x=0,int y=0); //竖着输出 // void printstand(int x=0,int y=0); //背面 // void showstandline(int x=0,int y=0); // void printstandline(int x=0,int y=0); // void printline(int x=0,int y=0); void showline(int x=0,int y=0); //作为封底用的 void setpcard(Card *); void exact(int no); //精确输出 JQKA Card * backpcard(); int backamount(); friend void Giveout(Player *,int); friend void showplayer(Player *player,int n); }; //Player
h class Card; class Player { private: int number;