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

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

天行健,君子以自强不息

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

2013年4月20日

摘要: 程序代码编译可以通,未进行运行时测试。 /* 本程序测试线性逻辑结构:队列*/#include <stdio.h>#include <stdlib.h>struct queuelist{ int* queue; int front; int rear; int size;};typedef struct queuelist QUEUE;typedef enum {FALSE,TRUE} BOOL;void CreateQueue(QUEUE* queue,int size);BOOL IsQueueEmpty(QUEUE* queue);BOOL Is... 阅读全文
posted @ 2013-04-20 21:26 volcanol 阅读(368) 评论(0) 推荐(0) 编辑

摘要: 程序代码可以编译通过,未用数据进行测试。 /* 本程序测试线性数据结构:栈*/#include <stdio.h>#include <stdlib.h>struct StackNode{ int* stack; int Top; //从1开始计数 int Size;};typedef struct StackNode STACK;typedef enum {FALSE,TRUE} BOOL;void CreateStack(STACK* stack,int size);void InitStack(STACK* stack);BOOL IsStackEmpty... 阅读全文
posted @ 2013-04-20 17:55 volcanol 阅读(298) 评论(0) 推荐(0) 编辑

摘要: 本程序代码编译能通过,但是在main函数中未调用的函数没进行测试。/*本程序用来测试数据结构中的线性结构:顺序表*/#include <stdio.h>#include <stdlib.h>#define LINEAR_MAX_SIZE 64struct LinearList{ int* List; //顺序表指针 unsigned short int ListLen; //顺序表最大的元素个数 unsigned short int CurrentLen; //顺序表当前元素的个数};typedef struct LinearList LINEARLIST;typ... 阅读全文
posted @ 2013-04-20 15:20 volcanol 阅读(320) 评论(0) 推荐(0) 编辑

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