摘要:
#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... 阅读全文
摘要:
#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]; ... 阅读全文