摘要:
#include #include #define N 500typedef struct node{ int data[N]; int front; int rear;}Queue;void initQueue(Queue*& q) //初始队列{ q= (Queue*)malloc(sizeof... 阅读全文
摘要:
#include #include typedef struct Node //一个项节点{ int modulus; //系数 int cover; //幂 struct Node* next; }List;void creatList(List *&l) //创建多项式链表... 阅读全文
摘要:
#include #include #include #include #define N 52 int hcard[4][14]; //四个玩家的牌void initCard(int* card) //初始化一副顺序牌{ int i = 0; for(;i=0&&temp>ccard[j])... 阅读全文
摘要:
#include #include #define MAXSIZE 100typedef struct Node{ int data; Node* lchild; Node* rchild;}Tnode;void creatTree(Tnode*& root) //创建树{ int n; prin... 阅读全文