找回密码
 立即注册
the求出位数function | 邮电通讯系统 2022-08-05 64 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
已知文件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_的虚拟局域网和路由协议配置