题目1 题目 设顺序表a中的数据元素递增有序,编写一个算法,将数据元素x插入到顺序表a的适当位置上,以保持该顺序表的有序性。 解答 void SLFindInsert(SL* ps, SLDataType x) { assert(ps); int pos = SLFind(ps, x); if (pos >= 0) { //如果存在数值相同的元素 printf("存在数值相同的元素"); SLInsert(ps, pos, x); } else { pos = 0; while (pos < ps->size &&...