文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
