摘要: #include #include #define initsize 100 #define ok 1 #define error 0 typedef int Status; typedef char ElemType; typedef struct{ ElemType *base; ElemType *top; int stacksize; }SqStack; stat... 阅读全文
posted @ 2016-07-26 16:47 风雨缠舟 阅读(622) 评论(0) 推荐(0) 编辑
摘要: #include #include #define SIZE 6 typedef int Type; //直接插入排序法 void InsertSort(Type a[],Type n){ int i,j; int temp; for(i=1;i=0)&&(temp<a[j])){//后移比当前插入的值要大的 a[j+1]=a[j]; ... 阅读全文
posted @ 2016-07-26 10:41 风雨缠舟 阅读(5309) 评论(0) 推荐(0) 编辑