将一数插入到有序表中 用inst(Telem)使生成的线性表仍有序,对顺序表写出函数

[复制链接]
查看11 | 回复1 | 2011-10-14 11:24:21 | 显示全部楼层 |阅读模式
#include #include #define Max 100
// 定义数组的最大长度typedef int Datatype; // 定义数组元素的数据类型typedef struct {Datatype data[Max]; // data数组用于开辟一段连续的存储空间int length;
// 当前长度}SqList;bool Inet(SqList *L,Datatype x) {int i,j;if (L->length >= Max) { printf("overflow!");return ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行