有以下程序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
有以下程序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.start
B.end
C.startend
D.endrt
相关考题:
有以下程序includemain(){FILE*fp;inta[10]={1,2,3},i,n;fp=fopen("d1.daf","w");for( 有以下程序 #include <stdio.h> main() {FILE *fp; int a[10]={1,2,3},i,n; fp=fopen("d1.daf","w"); for(i=0;i<3;i++) fprintf(fp,"%d",a[i]); fprintf(fp,"\n"); fclose(fp); fp=fopen("d1.dat","r"); fscanf(fp,"%d",n); fclose(fp);A.12300B.123C.1D.321
有以下程序: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
有以下程序 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
有以下程序: #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");