//算法7.1 顺序查找 #include using namespace std; #define MAXSIZE 100 #define OK 1; typedef struct{ int key;//关键字域 }ElemType; typedef struct{ ElemType *R; int length; }SSTable; int InitList_SSTable(SSTable &L) { L.R=new ElemType[MAXSIZE]; if (!L.R) { cout<<"初始化错误"; return 0; } L.length=0; return OK; } int Insert_SSTable(SSTable &L) { int j=0; for(int i=0;i=1; --i) if (ST.R[i].key==key) return i; //从后往前找 return 0; }// Search_Seq void Show_End(int result,int testkey) { if(result==0) cout<<"未找到"<