文件名称:S15_4
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.3kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
圆盘找数问题。设有以下20个随机数组成一个圆(首尾相接),分别求出连续的四个数之和为最大的四位数及其和值)以及连续的四个数之和为最小的四位数(输出整个数列、最大、最小的四个数及其和值。
要求:
1). 圆盘类class circle中包含私有成员int num[20], int Max[4] , int Min[4],int sum_max, int sum_min, 同时根据需要增加私有或公有成员及必要的公有成员函数。
2). 在程序中产生20个随机数.-Disc to find the problem. Has 20 random numbers to form a circle (end to end), respectively, obtaining four consecutive number and the largest of the four-digit and value) as well as four consecutive numbers and a minimum of four number (output of the entire series, maximum, minimum number of four and values. requirements: 1) the Disc class circle contains private member int num [20], int Max [4], int Min [4], int sum_max, int sum_min, at the same time according to the need to increase the private or public members and public member functions. 2) The random number generated in the program 20.
要求:
1). 圆盘类class circle中包含私有成员int num[20], int Max[4] , int Min[4],int sum_max, int sum_min, 同时根据需要增加私有或公有成员及必要的公有成员函数。
2). 在程序中产生20个随机数.-Disc to find the problem. Has 20 random numbers to form a circle (end to end), respectively, obtaining four consecutive number and the largest of the four-digit and value) as well as four consecutive numbers and a minimum of four number (output of the entire series, maximum, minimum number of four and values. requirements: 1) the Disc class circle contains private member int num [20], int Max [4], int Min [4], int sum_max, int sum_min, at the same time according to the need to increase the private or public members and public member functions. 2) The random number generated in the program 20.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
S15_4.CPP
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.