volcanol的工控博客
Email : lilinly225@126.com 索要资料加QQ 点击进入 或 点击左侧的资料分享专用帖

volcanol ---- View OF Linux Can Appreciate Nature OF Linux

天行健,君子以自强不息

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年2月11日

摘要: /* 本程序测试线性队列的数据结构*/#include <stdio.h>#define MAXSIZE 1024typedef struct node{ int data[MAXSIZE]; int length;} SeqList;/*函数功能: 初始化线性队列函数原型: void SeqListInit(SeqList *pSeqList,int n)函数参数: SeqList *pSeqList: 待初始化队列首指针 int n:数据元素的个数异常: 传递空指针, 数据元素的个数大于 MAXSIZE*/void ... 阅读全文
posted @ 2012-02-11 15:57 volcanol 阅读(740) 评论(1) 推荐(0) 编辑

摘要: 最近看C库,简单的学习了一下assert和setjmp库的功能,贴点心得。/* 本程序测试库函数,用来学习、理解库*/#include <stdio.h>/*测试:assert宏 与 NDEBUG的关系Tip: 经过各种测试,为了取消 assert 宏,必须在它之前定义NEDBUG; 这里也说明一个问题,宏的定义和引用是有先后顺序的 如果 #undef NDEBUG #define NDEBUG 在 #include <assert.h> 之后定义 NDEBUG 宏,那么就不能取消assert宏这里有一个比较特殊的性能... 阅读全文
posted @ 2012-02-11 15:54 volcanol 阅读(1690) 评论(4) 推荐(0) 编辑

volcanol ----View OF Linux Can Appreciate Nature OF Linux。