9-2

所属分类:文章/文档
开发工具:C/C++
文件大小:3KB
下载次数:2
上传日期:2019-12-06 13:07:36
上 传 者晏钧衎
说明:  9-2 建立一个一维数组a,并完成以下任务,并输入输出格式参见下图。 (1)以自动生成的斐波那契数列前10项(前两项为1、1)为数组元素赋初值,并输出; (2)将键盘输入的一个数据插入,并数组元素值仍保持有序; (3)把数组中相同的数据删除到只剩下一个,并输出; (4)求出数组所有元素的平均值,并输出; (5)删除数组中所有低于平均值的那些元素。
(9-2 create a one-dimensional array a, and complete the following tasks, and the input and output formats are shown in the figure below. (1) the first 10 items (the first two items are 1 and 1) of the Fibonacci sequence generated automatically are used as the initial values of array elements and output; (2) insert a data input by the keyboard, and keep the array element values in order; (3) delete the same data in the array to only one and output; (4) average all elements of the array and output;)

文件列表:
9-1.cpp (822, 2019-12-06)
9-1.zip (624, 2019-12-06)
9-2.cpp (1014, 2019-12-06)
实验报告九.vcxproj (3924, 2019-11-28)

近期下载者

相关文件


收藏者