登录
首页 » 文档处理 » 先创建文本文件IN.DAT,在文件中写20个四位整数。 编写函数readDat()把从文件中读出这些数并存入数组a中;编写函数Calvalue( ), 其功...

先创建文本文件IN.DAT,在文件中写20个四位整数。 编写函数readDat()把从文件中读出这些数并存入数组a中;编写函数Calvalue( ), 其功...

于 2022-11-28 发布 文件大小:815.00 B
0 131
下载积分: 2 下载次数: 1

代码说明:

先创建文本文件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.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是国际标准化组织的defcon的CD分布均匀!美国
    这是国际标准化组织的defcon的CD分布均匀!美国 -This is the International Organization for Standardization defcon distribution of the CD! USA
    2022-03-03 21:10:39下载
    积分:1
  • 汇编指令帮助,巨好!
    汇编指令帮助文档,巨好!-compilation directives help documentation, giant!
    2022-06-12 22:36:30下载
    积分:1
  • web页在线开发源码!
    web页在线开发源码!-web pages online source development!
    2022-07-09 19:02:11下载
    积分:1
  • 这是ipm公司的16c550芯片资料,有用的各位随便下载啊
    这是ipm公司的16c550芯片资料,有用的各位随便下载啊-IPM This the 16c550 chip information useful to the casual download ah
    2023-05-04 23:30:03下载
    积分:1
  • Houge out GRE collective Writing 5000, and other information poet
    猴哥满分GRE集体写作5000篇及其他gre资料-Houge out GRE collective Writing 5000, and other information poet
    2022-06-03 08:25:32下载
    积分:1
  • PipeDrop is distributed as 14
    PipeDrop is distributed as 14-day TRIALWARE. You may evaluate this software free of charge for not more than 14 days. At the end of 14 days you must register the software in order to continue using it. Before using this software, please read the disclaimer and license agreement in the file DISCLAIMER.TXT.-PipeDrop is distributed as 14-day TRIALWARE. You may evaluate thissoftware free of charge for not more than 14 days. At the end of14 days you must register the software in order to continue using it.Before using this software, please read the disclaimer and licenseagreement in the file DISCLAIMER.TXT.
    2022-11-02 08:45:04下载
    积分:1
  • software designers (Height), a simulation that
    软件设计师(高程)模拟题1-software designers (Height), a simulation that
    2022-01-22 00:55:55下载
    积分:1
  • 小型本编辑器使用VC6.0编写的一个MFC程序
    一个小型文本编辑器,该文本编辑器使用VC6.0编写的一个MFC程序,运行后弹出文本编辑器的主界面,由键盘输入后显示文本内容。使其具有一般文本编辑器具有的功能。编辑器具备对当前文本进行输入,换行,统计,撤销,重做,粘贴,查找,匹配等功能。
    2022-09-07 20:40:02下载
    积分:1
  • 内部排序的实验报告和代码
    内部排序的实验报告和代码-sort of internal reports and experimental code
    2022-05-18 18:49:47下载
    积分:1
  • 一个C做的走迷宫
    一个C做的走迷宫-do Maze
    2022-01-26 06:01:14下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载