[邮电通讯系统] 计算机等级考试三级网络技术笔试真题

[复制链接]
发表于 2022-8-5 18:26:42
已知文件IN.DAT中存有300个四位数,并已调用读函数readDat()把这些数存入数组a中,请编制一函数jsValue(),其功能是:求出全面这些四位数是素数的个数cnt,再求出全面满意此条件的四位数平均值pjz1,以及全面不满意此条件的四位数平均值pjz2。终究main()函数调用写函数writeDat()把效果cnt,pjz1,pjz2

(It is known that there are 300 four-digit numbers in the file IN.DAT, and the read function readDat() has been called to store these numbers in the array a. Please compile a function jsValue(), whose function is to obtain the comprehensive four-digit number The number is the number of prime numbers cnt, and then obtain the four-digit average pjz1 that fully satisfies this condition, and the four-digit average pjz2 that does not fully satisfy this condition. After all, the main() function calls the write function writeDat() to put the effect cnt, pjz1, pjz2)

[下载]18264306457.rar




上一篇:windows7_系统下实现两台笔记本内置的无线局域网卡共享上网的设
下一篇:基于Boson_NetSim_的虚拟局域网和路由协议配置

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表