随笔分类 - 数据结构之队列
摘要:#include<stdio.h>#include<iostream>#include<malloc.h>#include<stdlib.h>#include<string.h>using namespace std;#define maxsize 60typedef struct node{ in
阅读全文
摘要:#include<stdio.h>#include<iostream>#include<malloc.h>#include<stdlib.h>#include<string.h>using namespace std;#define maxsize 60typedef struct node{ in
阅读全文
摘要:/*链式队列其实就是一种特殊的单链表 只要单链表和结构体的知识咂实 就能很轻松的实现*/ #include<stdio.h>#include<stdlib.h>#include<malloc.h>static int c=0;typedef struct node{ int data; struct
阅读全文
摘要:#include<stdio.h>#include<malloc.h> #define max 10 typedef struct node{int queue[max];int front,rear;}q,*queue;void init(queue p){p->front=-1;p->rear=
阅读全文
摘要:#include<stdio.h>#include<malloc.h> #define max 100typedef struct node{ int queue[max]; int front,rear;}q,*queue;void init(queue p){ p->front=-1; p->r
阅读全文

浙公网安备 33010602011771号