C
云裳容
高级CtrlCV工程师
展开
-
线性顺序表的创建与使用
#include<stdio.h>#include<stdlib.h>#include<string.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define Error 0typedef int Status; typedef int Boolean; typedef int Elem...原创 2020-02-10 17:46:00 · 1560 阅读 · 1 评论 -
单链表的创建与使用
#include<stdio.h>#include<stdlib.h> #define OK 1 #define Error 0 #define TRUE 1 #define FALSE 0typedef int Status;typedef int ElemType;typedef struct LNode{int data;struct...原创 2020-02-10 17:45:30 · 1006 阅读 · 0 评论 -
函数计时器
#include<stdio.h>#include<time.h>clock_t start,stop;double s;void cs1 (int n){ int i ; for(i=0;i<=n;i++) printf("%d ",i); printf("\n");}main(){ int n; scanf("%d",&...原创 2020-02-10 17:45:12 · 1686 阅读 · 0 评论 -
队列(链式)
#include<stdio.h>#include<stdlib.h>#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0typedef int Status;typedef int QElemType;typedef int SElemType;typedef struct QNode...原创 2020-02-10 17:44:47 · 1347 阅读 · 0 评论 -
顺序栈
#include<stdio.h>#include<stdlib.h>typedef int Status;typedef int SElemType;#define MAXSIZE 100#define STACKINCREMENT 10#define OK 1 #define ERROR 0#define OVERFLOW 0typedef...原创 2020-02-10 17:44:19 · 1521 阅读 · 0 评论