-
先创建文本文件IN.DAT,在文件中写20个四位整数。
编写函数readDat()把从文件中读出这些数并存入数组a中;编写函数Calvalue( ), 其功...
先创建文本文件IN.DAT,在文件中写20个四位整数。
编写函数readDat()把从文件中读出这些数并存入数组a中;编写函数Calvalue( ), 其功能要求:
1. 求出这文件中共有多少个正整数totNum
2. 求这些数右移1位后, 产生的新数是偶数的数的个数totCnt, 以及满足此条件的这些数(右移前的值)
的算术平均值totPjz。
最后在main( )函数中把所求的结果输出。-First create a text file IN.DAT, wrote in the paper four integer 20. The preparation of function readDat () to read from the file into an array of these and a number of preparation function Calvalue (), its functional requirements: 1. Obtained in this paper the total number of positive integer totNum 2. For those few shifted to right one after the new number is the number of even a few totCnt, as well as to meet the conditions of these (the value of the pre-shifted to right) the arithmetic mean totPjz. Finally, in the main () function to output the results of the request.
- 2022-11-28 05:35:03下载
- 积分:1
-
java 学习网站 对初学者帮助大 混合型想好好学习
java 学习网站 对初学者帮助大 混合型想好好学习-java study site to help beginners learn to large mixed
- 2023-01-14 18:30:03下载
- 积分:1
-
Visual C++ MFC 简明教程是一本详细介绍微软基础类库的教材(doc格式),对初学者是一本不错的指导书!
Visual C++ MFC 简明教程是一本详细介绍微软基础类库的教材(doc格式),对初学者是一本不错的指导书!-Visual C the MFC concise course is in detail introduced the
Microsoft foundation class storehouse the teaching material (the doc
form), to the beginner is a good instruction book!
- 2022-03-25 03:49:08下载
- 积分:1
-
Transfer Files to and from an FTP Server
Transfer Files to and from an FTP Server
- 2022-03-04 08:47:37下载
- 积分:1
-
最新的x25045驱动,双通道读写驱动程序
最新的x25045驱动,双通道读写驱动程序-latest x25045 drive, dual-channel literacy Driver
- 2022-01-26 05:39:14下载
- 积分:1
-
完成了了一般图书管理系统的基本功能 图书的入库出库
完成了了一般图书管理系统的基本功能 图书的入库出库-Completion of the general library management system of the basic functions of a library book storage
- 2022-08-03 06:04:05下载
- 积分:1
-
使用uC
使用uC-OS-II操作系统的短信息电话机-use-OS-II OS phone short message
- 2022-06-20 19:18:00下载
- 积分:1
-
一些网络最经典命令行
一些网络最经典命令行-some of the most classic network command line
- 2022-04-08 16:00:04下载
- 积分:1
-
著名的英雄网站文件包,在Unix,Linux下工作是一个很好的方法。
著名的linux英雄站点的文档打包,对在unix,linux下工作的朋友是一个不错的参考文档。不是我吹牛,看看就知道了:)-famous hero site documentation package, in unix, working under linux is a good friend of the reference document. I am not bragging, but look at know :)
- 2022-02-05 19:11:52下载
- 积分:1
-
C++编程示例详解
C++编程示例详解-Elaborates on C Programming Example
- 2023-07-08 18:10:02下载
- 积分:1