-
先创建文本文件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
-
PCI device drivers for Windows Universal Design
PCI设备Windows通用驱动程序的设计-PCI device drivers for Windows Universal Design
- 2023-04-23 03:40:02下载
- 积分:1
-
这篇文章讲诉了高速行驶的汽车之间如何进行无线通信的问题。...
这篇文章讲诉了高速行驶的汽车之间如何进行无线通信的问题。-A survey of inter-vehicle communication protocols and their applications
- 2022-01-26 00:28:17下载
- 积分:1
-
VisualC~( )各类映射的应用研究
VisualC~( )各类映射的应用研究-Visual C ~ () for a range of mapping application
- 2022-07-27 16:02:38下载
- 积分:1
-
This is the RC500 in a thesis, to the person familiar with the RC500 is extremel...
这是有关RC500的一片论文,对于想熟悉RC500的人来说是极为有帮助的-This is the RC500 in a thesis, to the person familiar with the RC500 is extremely helpful
- 2023-06-26 12:35:04下载
- 积分:1
-
透明FLASH
透明FLASH-945-transparent FLASH-945
- 2022-01-25 14:49:20下载
- 积分:1
-
学习matlab必备
学习matlab必备-essential learning Matlab
- 2022-02-22 09:16:12下载
- 积分:1
-
计算机软件质量保证计划规范
计算机软件质量保证计划规范- Computer software quality guarantee plan standard
- 2022-04-22 06:40:40下载
- 积分:1
-
VC编程实现数字图像的边缘检测
VC编程实现数字图像的边缘检测-VC Programming Digital Image Edge Detection
- 2022-05-05 03:01:14下载
- 积分:1
-
java数字签名内容详细介绍签名过程 官方资料
java数字签名内容详细介绍签名过程 官方资料-java sign java sign java sign java sign java sign
- 2022-07-20 05:11:14下载
- 积分:1