4
代码说明:
说明: 题目:有一个已经排好序的数组。现输入一个数,要求按原来的规律将它插入数 组中。 ___________________________________________________________________ 程序分析:首先判断此数是否大于最后一个数,然后再考虑插入中间的数的情况 ,插入后此元素之后的数,依次后移一个位置。 (Topic: have a already sorted array. Now enter a number, according to the requirements of the original law be plugged into a number In the group. ___________________________________________________________________ Program analysis: first judge whether the number is greater than the last number, then consider intercalary number situation)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!