皮皮学,免费搜题
登录
搜题
【简答题】
下列程序的功能是:将大于整数m且紧靠m的k个素数存入数组xx。请编写函数num(int m,int k,int xx[])实现程序的要求,最后调用函数read write DAT()把结果输出到out31.dat文件中。 例如,若输入17,5,则应输出19,23,29,31,37。 注意:部分源程序已给出。 请勿改动主函数main()和输入输出函数read write DAT()的内容。 试题程序: include < conio.h> include Void readwriteDAT(); Void num(int m,int k,,int XX[]) { } main() { int m,n,xx[1000]; Clrscr(); printf(“/nPlease enter tWO integers:”) ‘scanf(“%d,%d”,&m,&n); num(m, n, XX); for(m=0;m<n;m++) printf(“%d”, XX[m]); printf(”/n”); readwriteDAT(); ) VOid read write DAT() { int m,n,xx[1000],i; FILE *rf.,*Wf; rf=fopen(“in31.Dat”,r”); Wffopen(“ou1t31.Dat”/”w”);。 for(i=0;i<10;i++) { fscanf(rf,%d,” %d”,&m,&n); num(m,n,XX); for(m=0;m fprintf(wf,%d”,xx[m]); fprintf (wf, “/n”); } fclose(rf); fclose (wf); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】地基软弱的多层砌体结构,当上部荷载较大且不均匀时,一般采用
A.
柱下条基
B.
柱下独立基础
C.
片筏基础
D.
箱形基础
【多选题】在Excel中,修改工作表名的操作可以从( )1:作表标签开始。
A.
用鼠标左键单击
B.
用鼠标右键单击
C.
用鼠标左键双击
D.
按住Ctrl键同时用鼠标左键单击
【简答题】Read the text through quickly and answer the following questions. (1) Why is English called the language of globalization? (2) In addition to being a medium of communication, what other roles do langu...
【单选题】Argumentation or Report? Please choose the correct type of task for Task2 Writing. In some countries, the role of a mother differs in some ways from the role of a father. Why do you think the differen...
A.
Argumentation
B.
Report
C.
Argumentation & Report
【简答题】Read Text I through quickly and answer the following questions. 1. Why is English called the language of globalization? 2. In addition to being a medium of communication, what other roles do languages...
【单选题】正极为饱和甘汞电极、负极为玻璃电极,分别插入以下各种溶液组成四种电池,使电池电动势最大的溶液是(    )。
A.
0.1mol·dm -3 HAc    
B.
0.1mol·dm -3 HCOOH
C.
0.1mol·dm -3 NaAc
D.
0.1mol·dm -3 HCl
【简答题】OK, so today we’re going to continue on the topic of 1. ____________. We’ll be looking at gender socialization— 2. ____________, how, how children learn their gender roles. Gender is something that we...
【多选题】在Excel中,修改工作表的名字可以从( )工作表标签开始。
A.
用鼠标左键单击
B.
用鼠标右键单击
C.
用鼠标左键双击
D.
用鼠标右键双击
【多选题】在Excel中,修改工作表的名字可以从( )工作表标签开始。
A.
用鼠标左键单击
B.
用鼠标右键单击
C.
用鼠标左键双击
D.
按住Ctrl键的同时用鼠标左键单击
【简答题】2) How do the roles of the teacher and student change in communicative language teaching?
相关题目: