文件名称:a
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:868.13kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写具有如下函数原型的非递归两种函数f,负责判断数组a的前n个元素是否从大到小完全有序了,是则返回true,否则返回false。并编制主函数对它们进行调用,以验证其正确性。
bool f(int a[], int n)
提示:
非递归函数中只需逐对地判断各a[i]与a[i+1]是否都已从大到小有序排列(i = 0,1,…,n-2)。-Prepared with the following function prototype of two non-recursive function f, is responsible for judging the array a is the first n elements beginning with the largest totally ordered, and that returns true, otherwise returns false. And the preparation of the main function call them to verify their accuracy. bool f (int a [], int n) Note: non-recursive function of the judge only by the a [i] and a [i+1] is already big to small ordered arrangement (i = 0 , 1, ..., n-2).
bool f(int a[], int n)
提示:
非递归函数中只需逐对地判断各a[i]与a[i+1]是否都已从大到小有序排列(i = 0,1,…,n-2)。-Prepared with the following function prototype of two non-recursive function f, is responsible for judging the array a is the first n elements beginning with the largest totally ordered, and that returns true, otherwise returns false. And the preparation of the main function call them to verify their accuracy. bool f (int a [], int n) Note: non-recursive function of the judge only by the a [i] and a [i+1] is already big to small ordered arrangement (i = 0 , 1, ..., n-2).
相关搜索: 图书管理系统
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Debug/a.exe
Debug/a.ilk
Debug/a.obj
Debug/a.pch
Debug/a.pdb
Debug/vc60.idb
Debug/vc60.pdb
a.cpp
a.dsp
a.dsw
a.ncb
a.opt
a.plg
Debug
Debug/a.ilk
Debug/a.obj
Debug/a.pch
Debug/a.pdb
Debug/vc60.idb
Debug/vc60.pdb
a.cpp
a.dsp
a.dsw
a.ncb
a.opt
a.plg
Debug
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.