文件名称:JGHFJGHKHJKHJKHJ
介绍说明--下载内容均来自于网络,请自行研究使用
题目:有一个已经排好序的数组。现输入一个数,要求按原来的规律将它插入数组中。
1. 程序分析:首先判断此数是否大于最后一个数,然后再考虑插入中间的数的情况,插入后
此元素之后的数,依次后移一个位置。
2.程序源代码:-Topic: have a already sorted array. Now the input a number, according to the law of the original requirements will it into an array.
1. The program analysis: the first judge whether a number more than the last number, then consider insert in the middle of the number, after insert
This element of the number after, back in a position.
2. The source code:
1. 程序分析:首先判断此数是否大于最后一个数,然后再考虑插入中间的数的情况,插入后
此元素之后的数,依次后移一个位置。
2.程序源代码:-Topic: have a already sorted array. Now the input a number, according to the law of the original requirements will it into an array.
1. The program analysis: the first judge whether a number more than the last number, then consider insert in the middle of the number, after insert
This element of the number after, back in a position.
2. The source code:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
JGHFJGHKHJKHJKHJ.doc