文件名称:Insert-and-delete-the-linear-form
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [WORD]
- 上传时间:
- 2014-04-24
- 文件大小:
- 163kb
- 下载次数:
- 0次
- 提 供 者:
- huang*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
程序依次实现以下功能:(1)定义一个有序(非递减)线性表,其最大容量为 1000,初始时为空。
(2)从由 1 产生的数据文件中依次取前 N 个随机整数,陆续插入到此线性表中,并要求在每次插入后保持线性表的有序性。最后将此有序线性表打印输出。
(3) 在由(2)产生的线性表中,依在 1中产生的次序逐个将元素删除,直至表空为止。
-Program in order to achieve the following functions: (1) the definition of an ordered (non-decreasing) linear form, its maximum capacity of 1000, initially empty. (2) from the data file generated by the one before the turn to take a random integer N, one after another into this linear table, and asked after each insertion to maintain orderly linear form. Finally, this orderly linear form printout. (3) in the linear form (2) generated, in order, resulting in an element must be removed one by one, until the table is empty.
(2)从由 1 产生的数据文件中依次取前 N 个随机整数,陆续插入到此线性表中,并要求在每次插入后保持线性表的有序性。最后将此有序线性表打印输出。
(3) 在由(2)产生的线性表中,依在 1中产生的次序逐个将元素删除,直至表空为止。
-Program in order to achieve the following functions: (1) the definition of an ordered (non-decreasing) linear form, its maximum capacity of 1000, initially empty. (2) from the data file generated by the one before the turn to take a random integer N, one after another into this linear table, and asked after each insertion to maintain orderly linear form. Finally, this orderly linear form printout. (3) in the linear form (2) generated, in order, resulting in an element must be removed one by one, until the table is empty.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
线性表的插入与删除.doc