新增加两个结构体,添加一些类型定义和宏定义,你这个函数可以不用修改: #define MAX_LENGTH 256 #define ERROR 0 #define OK 1 typedef int Status; typedef struct tagElem { char data1; int data2; ... } ElemType; typedef struct tagSqList { ElemType elem[MAX_LENGTH]; int length; // < MAX_LENGTH } SqList; Status ListDelete_Sq(SqList &L, int i, ElemType &e) { // 算法2.5 ...