C语言的发牌程序

来源:百度知道 编辑:UC知道 时间:2024/07/07 19:16:09
书上的题 写不出!网上的又看不懂(个人爱好。没地方请教)所以请哪位老师给写个简单易懂的 嗯!注释最好详细点 复制下来没有用 我想学会自己怎么写! 麻烦了!
52张牌 发4人!分花色!

#define N 20
#define COL 100
#define ROW 40
#include "stdio.h"
#include "time.h" /*系统时间函数*/
#include "graphics.h" /*图形函数*/
#include "alloc.h"/*动态地址分配函数*/
#include "stdlib.h" /*库函数*/
#include "string.h" /*字符串函数*/
#include "ctype.h" /*字符操作函数*/
char p[4][13]={
{'A','2','3','4','5','6','7','8','9','0','J','Q','K'},/*扑克牌,10用0来表示*/
{'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&#