求错——循环队列

//循环队列#include <stdio.h>#include <stdlib.h>#define MAXSIZE 20typedef struct { int *base; int rear; int front;}SqQueue;void Instructions(void){ printf("Enter your choice:\n" "1、Insert an element to the Queue\n" "2、Delete an element from the Queue\n" "3、End\n");}v...
2011-04-11 11:22 | 阅读 663 次 | 评论 0 条

稀疏矩阵

//稀疏矩阵 #include <stdio.h>#include <stdlib.h>#include <time.h>#define MAXSIZE 100#define ELEMTYPE inttypedef struct { int i,j; ELEMTYPE elem;}Triple;typedef struct{ Triple data[MAXSIZE+1]; int rcount,ccount,counter;}TSMatrix;void Display(TSMatrix M){ int temp; printf("********...
2011-04-11 11:19 | 阅读 678 次 | 评论 0 条
文章归档
最新评论