题目内容

有以下程序#include main(){FILE *fp;int i=20,j=30,k,n;fp=fopen("d1.dat","w") ;fprintf(fp,"%d\n",i);fprintf(fp,"%d\n",j);fclose(fp);fp=fopen("d1.dat", "r");fp=fscanf(fp,"%d%d",&k,&n);printf("%d%d\n",k,n);fclose(fp);}程序运行后的输出结果是( )。

查看答案
更多问题

What machines are there in the engine room?

What tools are in the toolbox?

以下程序的功能是:从键盘上输入一个字符串, 把该字符串中的小写字母转换为大写字母,输出到当前目录中的文件test.txt中,然后从该文件读出字符串并显示出来.请填空.#includemain(){FILE *fp;char str[100]; int i=0;if((fp=fopen(" 第1空","w"))==NULL){printf("can't open this file.\n");exit(0);}printf("input astring:\n");gets(str);while (str[i]){if(str[i]='a'&&str[i]<='z')str[i]= 第2空;fputc(str[i],fp);i++;}fclose(fp);fp=fopen("test.txt", 第3空);fgets(str,100,fp);printf("%s\n",str);fclose(fp);}

How to say 救生艇 in English?

A. Lifebuoy.
B. Lifeboat.
C. Life jacket.
D. Life raft.

答案查题题库