摘要: queue.h 1 /* 队列的类型声明 */ 2 3 typedef int ElementType; 4 /* START: fig3_57.txt */ 5 #ifndef _Queue_h 6 #define _Queue_h... 阅读全文
posted @ 2015-12-03 22:51 樱风凛 阅读(216) 评论(0) 推荐(0) 编辑
摘要: stackli.h 1 /* 栈的链表实现的类型声明*/ 2 3 typedef int ElementType; 4 /* START: fig3_39.txt */ 5 #ifndef _Stack_h 6 #define _Sta... 阅读全文
posted @ 2015-12-03 21:41 樱风凛 阅读(255) 评论(0) 推荐(0) 编辑
摘要: stackar.h 1 /* 栈的数组实现的类型声明*/ 2 3 typedef int ElementType; 4 /* START: fig3_45.txt */ 5 #ifndef _Stack_h 6 #define _St... 阅读全文
posted @ 2015-12-03 21:20 樱风凛 阅读(250) 评论(0) 推荐(0) 编辑
摘要: list.h文件 1 /*链表的类型声明*/ 2 3 typedef int ElementType; 4 5 /* START: fig3_6.txt */ 6 #ifndef _List_H 7 #define _List_H ... 阅读全文
posted @ 2015-12-03 19:05 樱风凛 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: 作用:防止头文件的重复包含和编译定义 #ifndef x #define x ... #endif 这是宏定义的一种,它可以根据是否已经定义了一个变量来进行分支选择,一般用于调试等等.实际上确切的说这应该是预处理功能中三种(宏定义,文件包含和条件编译)中的一种----条件编译。 C语言在... 阅读全文
posted @ 2015-12-03 15:52 樱风凛 阅读(30760) 评论(0) 推荐(5) 编辑