随笔分类 -  c

摘要:#include<stdio.h> #include<stdlib.h> #define MAX_SIZE 101 #define SWAP(x, y, t)((t) = (x), (x) = (y), (y) = t) #define COMPARE(x, y)((x) < (y)) ? -1 : 阅读全文
posted @ 2020-06-30 01:26 金色元年 阅读(162) 评论(0) 推荐(0)
摘要:#ifndef __LINKQUEUE_H__ #define __LINKQUEUE_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 #define OVERFLOW -2 阅读全文
posted @ 2020-06-28 23:29 金色元年 阅读(268) 评论(0) 推荐(0)
摘要:栈stack - 是限定在表尾进行插入或删除的线性表 #ifndef __STACK_H__ #define __STACK_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 # 阅读全文
posted @ 2020-06-28 01:32 金色元年 阅读(187) 评论(0) 推荐(0)
摘要:1. 头结点表示链表中第一个结点的存储位置 2. 最后一个结点的存储位置为空(NULL); #ifndef __LINKLLIST_H__ #define __LINKLLIST_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERRO 阅读全文
posted @ 2020-06-27 01:21 金色元年 阅读(598) 评论(0) 推荐(0)
摘要:#ifndef __SQLLIST_H__ #define __SQLLIST_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 #define OVERFLOW -2 #def 阅读全文
posted @ 2020-06-26 16:57 金色元年 阅读(966) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include<stdlib.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 #define OVERFLOW -2 typedef in 阅读全文
posted @ 2020-06-26 16:55 金色元年 阅读(867) 评论(0) 推荐(0)
摘要:1.8编写一个统计空格,制表符与换行符个数的程序 1 #include 2 main(){ 3 int c,nl,tl,kl; 4 nl=tl=kl=0; 5 6 while( (c=getchar()) != EOF ){ 7 if(c=='\n') ... 阅读全文
posted @ 2015-08-16 16:55 金色元年 阅读(307) 评论(0) 推荐(0)