有以下程序 include void WriteStr(char*fn,char*str) {FILE*fp; fp=f 有以下程序 #include<stdio.h> void WriteStr(char*fn,char*str) {FILE*fp; fp=fopen(fn"w");fputs(str,fp);fclose(fp); } main() { WriteStr("t1.dat"start"); WriteStr("t1,dat","end"); } 程序运行后,文件t1.dat中的内容是 ______。A.startB.endC.startendD.endrt
有以下程序 include void WriteStr(char*fn,char*str) {FILE*fp; fp=f
有以下程序 #include<stdio.h> void WriteStr(char*fn,char*str) {FILE*fp; fp=fopen(fn"w");fputs(str,fp);fclose(fp); } main() { WriteStr("t1.dat"start"); WriteStr("t1,dat","end"); } 程序运行后,文件t1.dat中的内容是 ______。
A.start
B.end
C.startend
D.endrt
相关考题:
有以下程序include void WriteStr(char*fn,char*str){FILE*fp; fp=fopen(fn,"w");fpu 有以下程序 #include <stdio.h> void WriteStr(char *fn, char *str) { FILE *fp; fp=fopen(fn,"w"); fputs(str,fp);fclose(fp); } main() { WriteStr("t1.dat","start"); WriteStr("t1.dat","end"); } 程序运行后,文件t1.dat中的内容是A.startB.endC.startendD.endrt
有以下程序:includevoid WriteStr(char *fn, char *sir){FILE * fP; fP=fopen(fn,"w") 有以下程序: #include<stdio.h> void WriteStr(char *fn, char *sir) { FILE * fP; fP=fopen(fn,"w"); fput6(str,fp); fclose(fp); } main() { WriteStr("t1.dar","start"); WrlteStr("t1.dat","end"); } 程序运行后,文件t1.dat中的内容是( )。A.startB.endC.startendD.endrt
有以下程序 #include void WriteStr(char*fn,char*str) { FILE*fp; fp=fopen(fn,"w");fputs (str,fp);fclose(fp); } main() { WriteStr("t1.dat","start"); WriteStr("t1.dat","end"); } 程序运行后,文件t1.dat中的内容是______。A.startB.endC.startendD.endrt
有以下程序includevoid WriteStr(char*fn,char*str){FILE*fp; fp=fopen(fn,"w");fputs 有以下程序 #include<stdio.h> void WriteStr(char*fn,char*str) { FILE*fp; fp=fopen(fn,"w");fputs(str,fp);fclose(fp); } main() { writeStr("t1.dat","start"); WriteStr("t1.dat","end"); } 程序运行后,文件t1.dat中的内容是A.startB.endC.startendD.endrt
有以下程序: #includestdio.1l void WriteStr(char*fn.char*str) { FILE*fp; fp=fopen(fn,"w");fputs(str,fp);fclose(fp);} main { WriteStr("tl.dat","start"); WriteStr("t1.dat","end");) 程序运行后,文件t1.dat中的内容是( )。A. startB.endC.startendD.endrt
有以下程序:includestdio.1lvoid WriteStr(char*fn.char*str){ FILE*fp;fp=fopen(fn,stdio.1lvoid WriteStr(char*fn.char*str){ FILE*fp;fp=fopen(fn,w);fputs(str,fp);fclose(fp);}main{ WriteStr(tl.dat,start);WriteStr(t1.dat,end);)程序运行后,文件t1.dat中的内容是( )。A. startB.endC.startendD.endrt
有以下程序: #include void WriteStr(char *fn,char*str) { FILE*fp; fp=fopen(fn,"w");fputs(str,fp);fclose(fp); main() { WriteStr("t1.dat","start"); WriteStr("t1.dat","end"); } 程序运行后,文件t1.dat中的内容是( )。A.startB.endC.startendD.endrt
在C中,打开文件的程序段中正确的是A.#include <stdio.h> FILE *fp; fp=fopen("file1.c","WB");B.#include <stdio.h> FILE fp; fp=fopen("file1.c","w");C.#include <stdio.h> FILE *fp; fp=fopen("file1.c","w");D.#include <string.h> FILE *fp; fp=fopen("file1.c","w");
【填空题】文本文件quiz.txt的内容为"Programming" (不包含引号),以下程序段的运行结果是_________________ FILE *fp; char *str; if((fp=fopen("quiz.txt","r"))!=NULL) str=fgets(str,7,fp); printf("%s",str);