摘要: 传递要查找的数组,数组大小以及要查找的值,返回该值在数组中的索引int find1(int *a, int n,int key){ assert(a); int *end = a + n, *beg = a; for (; beg #include#include#includ... 阅读全文
posted @ 2015-12-07 12:41 _Bin 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 循环队列结构如下:#define QUEUE_MAXSIZE 100#define ERROR 0#define OK 1#define OVERFLOW -1typedef int Status;typedef int QElemTyp... 阅读全文
posted @ 2015-12-07 09:58 _Bin 阅读(158) 评论(0) 推荐(0) 编辑