文件名称:顺序表
介绍说明--下载内容均来自于网络,请自行研究使用
设计内容:自行产生10000个0到9999之间的随机数,按照产生的顺序依次把它们存放到一个数据文件中。然后设计程序实现以下功能。
功能要求:(1)定义一个非递减有序、最大长度为10000的顺序表,初始表为空;(2)从已经产生的数据文件中依次取出前n个随机数,并依次插入到有序顺序表中。插入完成后输出顺序表的全部元素;(3)对已经插入数据元素的顺序表,按照表中元素在数据文件中的顺序逐个将元素删除,直到表空;(4)在一个顺序表中查找给定的整数,并报告查找结果;(5)将两个顺序表合并成一个顺序表并输出。(Design Content: Produce 10000 random numbers from 0 to 9999 by oneself, and store them in a data file in order of generation. Then design the program to implement the following functions.
Functional requirements: (1) Define a non-decreasing ordered list with a maximum length of 10000, and the initial table is empty; (2) Sequentially extract the first N random numbers from the generated data files and insert them into the ordered list. After insertion, all the elements of the order table are output; (3) For the order table in which the data elements have been inserted, delete the elements one by one in the order of the table in the data file until the table is empty; (4) Find a given integer in a sequence table and report the results of the search; (5) Merge the two order tables into one Sequence table and output.)
功能要求:(1)定义一个非递减有序、最大长度为10000的顺序表,初始表为空;(2)从已经产生的数据文件中依次取出前n个随机数,并依次插入到有序顺序表中。插入完成后输出顺序表的全部元素;(3)对已经插入数据元素的顺序表,按照表中元素在数据文件中的顺序逐个将元素删除,直到表空;(4)在一个顺序表中查找给定的整数,并报告查找结果;(5)将两个顺序表合并成一个顺序表并输出。(Design Content: Produce 10000 random numbers from 0 to 9999 by oneself, and store them in a data file in order of generation. Then design the program to implement the following functions.
Functional requirements: (1) Define a non-decreasing ordered list with a maximum length of 10000, and the initial table is empty; (2) Sequentially extract the first N random numbers from the generated data files and insert them into the ordered list. After insertion, all the elements of the order table are output; (3) For the order table in which the data elements have been inserted, delete the elements one by one in the order of the table in the data file until the table is empty; (4) Find a given integer in a sequence table and report the results of the search; (5) Merge the two order tables into one Sequence table and output.)
相关搜索: 数据结构顺序表及其应用
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
shujujiegou.obj | 9317 | 2017-12-01 |
shujujiegou.opt | 48640 | 2017-11-18 |
shujujiegou.pdb | 1289216 | 2017-12-01 |
shujujiegou.plg | 779 | 2017-11-18 |
Debug | 0 | 2017-11-18 |
Debug\rand.txt | 58584 | 2017-11-18 |
Debug\shujujiegou.exe | 204875 | 2017-11-18 |
Debug\shujujiegou.ilk | 226560 | 2017-11-18 |
Debug\shujujiegou.obj | 23777 | 2017-11-18 |
Debug\shujujiegou.pch | 223500 | 2017-09-18 |
Debug\shujujiegou.pdb | 533504 | 2017-11-18 |
Debug\vc60.idb | 41984 | 2017-11-18 |
Debug\vc60.pdb | 53248 | 2017-11-18 |
rand.txt | 58583 | 2017-12-01 |
shujujiegou.cpp | 5908 | 2017-12-01 |
shujujiegou.dsp | 3461 | 2017-11-18 |
shujujiegou.dsw | 530 | 2017-11-18 |
shujujiegou.exe | 154112 | 2017-12-01 |
shujujiegou.ilk | 636068 | 2017-12-01 |
shujujiegou.ncb | 41984 | 2017-11-18 |