文件名称:homework_2.11
-
所属分类:
- 标签属性:
- 上传时间:2014-05-08
-
文件大小:1.3kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
将x插入到顺序表的适当位置上,以保持该表的有序性。
输入数据:文本文件input.txt
文件分4行:
第1行是顺序表va的数据元素个数n,n<20。如果n<1或n>19则视为输入数据出错。
第2行是n个递增有序的数据元素,每个元素都是-999~999之间的十进制整数,元素之间用空格分开。
第3行是整数x,x是-999~999之间的十进制整数。
第4行是空行。
输出数据:文件output.txt
文件只有1行:
第1行是完成插入之后的顺序表n+1个有序元素的十进制整数,每个元素之间用空格分开。
如果输入数据出错,或者运行过程出错、问题无解等,则第1行输出字符串“ERROR”。
-The x sequence is inserted into the appropriate position on the table, in order to maintain the orderliness of the table. Input data: text file input.txt file 5 lines: Line 1 is the number of data elements in the order form va n, n < 20. If n < 1 or n> 19 is considered to input data error. The second line is the increasing order of n data elements, each element is a decimal integer between-999 to 999, separated by a space between the elements. Line 3 is an integer x, x is a decimal integer between-999 to 999. Line 4 is a blank line. Output data: file output.txt file has only one line: Line 1 is completed in order to insert a table n+1 after a decimal integer ordered elements, separated by a space between each element. If the input data error, or an error during the operation, the problem has no solution, etc., then the first line of the output string " ERROR" .
输入数据:文本文件input.txt
文件分4行:
第1行是顺序表va的数据元素个数n,n<20。如果n<1或n>19则视为输入数据出错。
第2行是n个递增有序的数据元素,每个元素都是-999~999之间的十进制整数,元素之间用空格分开。
第3行是整数x,x是-999~999之间的十进制整数。
第4行是空行。
输出数据:文件output.txt
文件只有1行:
第1行是完成插入之后的顺序表n+1个有序元素的十进制整数,每个元素之间用空格分开。
如果输入数据出错,或者运行过程出错、问题无解等,则第1行输出字符串“ERROR”。
-The x sequence is inserted into the appropriate position on the table, in order to maintain the orderliness of the table. Input data: text file input.txt file 5 lines: Line 1 is the number of data elements in the order form va n, n < 20. If n < 1 or n> 19 is considered to input data error. The second line is the increasing order of n data elements, each element is a decimal integer between-999 to 999, separated by a space between the elements. Line 3 is an integer x, x is a decimal integer between-999 to 999. Line 4 is a blank line. Output data: file output.txt file has only one line: Line 1 is completed in order to insert a table n+1 after a decimal integer ordered elements, separated by a space between each element. If the input data error, or an error during the operation, the problem has no solution, etc., then the first line of the output string " ERROR" .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
homework_2.11/homework_2.11参考答案一.c
homework_2.11/input.txt
homework_2.11/output.txt
homework_2.11
homework_2.11/input.txt
homework_2.11/output.txt
homework_2.11
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.