文件名称:a
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 868kb
- 下载次数:
- 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
.....\a.ilk
.....\a.obj
.....\a.pch
.....\a.pdb
.....\vc60.idb
.....\vc60.pdb
a.cpp
a.dsp
a.dsw
a.ncb
a.opt
a.plg
Debug
.....\a.ilk
.....\a.obj
.....\a.pch
.....\a.pdb
.....\vc60.idb
.....\vc60.pdb
a.cpp
a.dsp
a.dsw
a.ncb
a.opt
a.plg
Debug