#include<stdio.h> #include<graphics.h> #include<ctype.h> #include<time.h> #include<stdlib.h> #include<string.h> #define COL 100 #define COM 40 #define max 20 char after[max]; typedef struct stack /*定义栈1存放运算符*/ { char stack[max]; int top; }stack; stack L; typedef struct stack1 /*定义栈2计算表达式值*/ { int stack1[max]; int top; }stack1; stack1 S; void initstack(stack M) { M->top=0; } voidinitstack1(stack1 N) { N->top=0; } char p[4][13]={ {'A','2,'3','4','5','6','7','8','9','0','J','Q','K'}, {'A','2,'3','4','5','6','7','8','9','0','J','Q','K'}, {'A','2,'3','4','5','6','7','8','9','0','J','Q','K'}, {'A','2,'3','4','5','6','7','8','9','0','J','Q','K'} }; void play() /*发牌函数*/ { int j; for(j=1;j<=4;j++) { bar(COL+100*j-35,COM+100-50,COL+100*j+35,COM+100+50); setcolor(BLUE); rectangle(COL+100*j-32,COM+100-48,COL+100*j+32,COM+100+48);
上一篇:挑战30天C++入门极限-引 言
下一篇:256色汉字显示程序
|