文件名称:xianxingbiao
介绍说明--下载内容来自于网络,使用问题请自行百度
实习题
[问题描述]
1. 设顺序表中的数据元素递增有序,将插入到顺序表的适当位置上,是该表仍然有序。
[输入]
初始顺序表,插入字符。
[输出]
插入x后线性表的结果
[存储结构]
采用顺序存储结构
[算法的基本思想]
建立一个递增顺序表,插入一个数值并移动元素,使其仍然有序。
程序如下:
#include \"iostream.h\"
#include <malloc.h>
#define LIST_INTI_SIZE 100//初始空间大小
typedef struct SqList
-attachment that [problem descr iption] 1. Established order of the table data elements incremental orderly, will be inserted into the appropriate sequence table position is that the schedule remains orderly. [Imported] initial order and inserting characters. [Output] x inserted after the results of the linear scale [storage structure] sequence storage structure [algorithm for the basic idea : the establishment of a - incremental sequence table, insert a numerical and mobile elements, it remains orderly. The procedure is as follows : # include "iostream.h" # include
[问题描述]
1. 设顺序表中的数据元素递增有序,将插入到顺序表的适当位置上,是该表仍然有序。
[输入]
初始顺序表,插入字符。
[输出]
插入x后线性表的结果
[存储结构]
采用顺序存储结构
[算法的基本思想]
建立一个递增顺序表,插入一个数值并移动元素,使其仍然有序。
程序如下:
#include \"iostream.h\"
#include <malloc.h>
#define LIST_INTI_SIZE 100//初始空间大小
typedef struct SqList
-attachment that [problem descr iption] 1. Established order of the table data elements incremental orderly, will be inserted into the appropriate sequence table position is that the schedule remains orderly. [Imported] initial order and inserting characters. [Output] x inserted after the results of the linear scale [storage structure] sequence storage structure [algorithm for the basic idea : the establishment of a - incremental sequence table, insert a numerical and mobile elements, it remains orderly. The procedure is as follows : # include "iostream.h" # include
(系统自动生成,下载前可以参看下载内容)
下载文件列表
线性表.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.