文件名称:_nankai100doc
介绍说明--下载内容均来自于网络,请自行研究使用
请编写一个函数jsValue(int m,int k,int xx[]),该函数的功能是:将大于整数m且紧靠m的k个素数存入数组xx传回。
最后调用函数writeDat()读取10组数据,分别得出结果且把结果输出到文件out.dat中。
部分源程序存在文件prog1.c中。
例如:若输入17 5 则应输出:19,23,29,31,37。
-Please prepare a function jsValue (int m, int k, int xx []), the function of this function is: will be greater than the integer m and m close to the k-prime numbers into an array returned xx. Finally, call a function writeDat () to read 10 sets of data, respectively, the results and the results output to a file in out.dat. The existence of some source documents in prog1.c. For example: if the input should be 17 5 Output: 19,23,29,31,37.
最后调用函数writeDat()读取10组数据,分别得出结果且把结果输出到文件out.dat中。
部分源程序存在文件prog1.c中。
例如:若输入17 5 则应输出:19,23,29,31,37。
-Please prepare a function jsValue (int m, int k, int xx []), the function of this function is: will be greater than the integer m and m close to the k-prime numbers into an array returned xx. Finally, call a function writeDat () to read 10 sets of data, respectively, the results and the results output to a file in out.dat. The existence of some source documents in prog1.c. For example: if the input should be 17 5 Output: 19,23,29,31,37.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
_nankai100doc.doc