?待排序记录的数据类型定义如下
define MAXSIZE 100
typedef int KeyType;
typedef struct{
KeyType key;
}RecType;
typedef RecType SeqList[MAXSIZE];
要下列函数实现顺序表的直接插入排序,请在空白处填上适当内容使算法完整。
void f32(SeqList R, int n)
{
int i,j;
RecType temp;
for(i=; i<= ① ;i++){
temp=R[i]:
j=i;
while(j>0&& temp. key ]=RLj-1]; ② ; ③ ; } }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服