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

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

于 2022-11-28 发布 文件大小:815.00 B
0 180
下载积分: 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 个回复

  • 详细介绍了近代数学基础课件2004博士级别的,请大家一起分享...
    该文档详细介绍了近代数学基础课件2004博士级别的,请大家一起分享-the document in detail the basis of modern mathematics doctorate-level courseware 2004, please share with everyone
    2022-11-02 00:05:03下载
    积分:1
  • 关于ADI TigerSHARC TS201 boot方式操作的.
    关于ADI TigerSHARC TS201 boot方式操作的文档. -ADI TigerSHARC TS-201 on the way to operate the boot files.
    2022-04-10 16:01:58下载
    积分:1
  • 采用东芝TDA7495/TDA7496芯片(已经形成产品)制作的高保真立体声音频放大器项目图...
    采用东芝TDA7495/TDA7496芯片(已经形成产品)制作的高保真立体声音频放大器项目图-Toshiba chips used TDA7495/TDA7496 (has been formed products) produced by high-fidelity stereo audio amplifier project plans
    2022-01-31 14:48:31下载
    积分:1
  • 前两天一个朋友要我写一个51例程,要求尽量把我会的东西都放到例程里,并且说了一句非常狠的话,要我把程序做成“看起来像是高手写的程序”,这话,我现在越想越不舒服。...
    前两天一个朋友要我写一个51例程,要求尽量把我会的东西都放到例程里,并且说了一句非常狠的话,要我把程序做成“看起来像是高手写的程序”,这话,我现在越想越不舒服。 当然,既然答应了,也就写出来了,不敢在高手面前弄斧,就发给新手看看了。 51有两年没有用了,不过竟然汇编还能写出来,哈哈。我以前从来不用extern关键字,这里也用上了,当然了,保证学51的朋友看来不会后悔。 #注:用的不是汇编,只是嵌入汇编的功能用进去了, 功能:数码管显示, 按键, 不同的按键按下走马灯程序会改变方式,但是这部分有点BUG(功能和程序里注释有点不符合,已经花了两天时间了,不想花时间找了), 串口回发 文件名EXAM1。UV2, 和EXAM1。DSN(proteus) -err
    2023-08-08 22:10:03下载
    积分:1
  • tomcat Chinese data
    tomcat 中文 资料-tomcat Chinese data
    2022-03-17 08:21:46下载
    积分:1
  • M icrosoft Corporation compiled all possible, a list of error codes and error co...
    M i c r o s o f t公司编译了一个所有可能的错误代码的列表,并且为每个错误代码分配了一个3 2 位的号码。Wi n E r r o r. h 头文件包含了M i c r o s o f t 公司定义的错误代码的列 表。-M icrosoft Corporation compiled all possible, a list of error codes and error codes for each distribution of a 3 2-bit number. Wi n E rro r. h header file contains the definition of M icrosoft Corporation a list of error codes.
    2022-01-27 20:22:15下载
    积分:1
  • 智能型动态图像追踪自控车,智能追踪程序!
    智能型动态图像追踪自控车,智能追踪程序!-Intelligent dynamic image tracking controlled cars, intelligent tracking program!
    2023-01-18 21:20:04下载
    积分:1
  • 急需原代码请通过
    急需原代码请通过-urgent requests by the original code
    2023-06-09 21:25:03下载
    积分:1
  • 一款电源设计的资料
    一款电源设计的资料-new power supply design information
    2022-03-05 17:21:48下载
    积分:1
  • 栅极驱动
    IGBT 驱动 IC 包括先进的控制和保护功能 IGBT 器件在电源应用中由于其高电流/电压能力和易用性方面发挥很大的作用驾驶。大多数工业应用程序使用 1200V IGBT 的三相逆变器。驾驶这些在中型或大型电源应用中的设备需要单独的、 浮动的高和低边驱动程序与电绝缘。控制和保护功能也确保可靠的操作。此后提出的设备是一个新的集成电路直接包含所需的所有功能驱动 IGBT 功率应用中,特别适合于 1200V IGBT 的电流额定值的 25 至80A 类似 Econopak 的模块中。
    2022-01-25 15:22:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载