阅读以下程序,对程序功能的描述中正确的是 #icnlude int main() { FILE *in, *out; char ch, infile[10], outfile[10]; printf("Enter the infile name:"); scanf("%s", infile); printf("Enter the outfile name:"); scanf("%s", outfile); if ((in = fopen(infile, "r")) == NULL) { printf("cannot open infile."); exit(0); } if ((out = fopen(outfile, "w")) == NULL) { printf("cannot open outfile."); exit(0); } while (!feof(in)) { fputc(fgetc(in), out); } fclose(in); fclose(out); return 0; }
阅读以下程序,对程序功能的描述中正确的是 #icnlude int main() { FILE *in, *out; char ch, infile[10], outfile[10]; printf("Enter the infile name:"); scanf("%s", infile); printf("Enter the outfile name:"); scanf("%s", outfile); if ((in = fopen(infile, "r")) == NULL) { printf("cannot open infile."); exit(0); } if ((out = fopen(outfile, "w")) == NULL) { printf("cannot open outfile."); exit(0); } while (!feof(in)) { fputc(fgetc(in), out); } fclose(in); fclose(out); return 0; }
Python语言的输出函数是()。 A: input() B: printf() C: print() D: out()
Python语言的输出函数是()。 A: input() B: printf() C: print() D: out()
C++程序中,负责标准输出的预定义对象是: A: printf B: print C: cout D: out
C++程序中,负责标准输出的预定义对象是: A: printf B: print C: cout D: out
下列语句中正确的是()。 A: IfA≠BThenSystem.out.print("A不等于B"); B: If(A≠B)System.out.print("A不等于B"); C: If(A!=B)ThenSystem.out.print("A不等于B"); D: IfA!=BThenSystem.out.printf("A不等于B");
下列语句中正确的是()。 A: IfA≠BThenSystem.out.print("A不等于B"); B: If(A≠B)System.out.print("A不等于B"); C: If(A!=B)ThenSystem.out.print("A不等于B"); D: IfA!=BThenSystem.out.printf("A不等于B");
编写程序,用“*”输出字母C。 答案: #include void main() { printf("* * * * "); printf("* "); printf("* "); printf("* "); printf("* * * * ");
编写程序,用“*”输出字母C。 答案: #include void main() { printf("* * * * "); printf("* "); printf("* "); printf("* "); printf("* * * * ");
编写程序,用“*”输出字母C。 答案: #include void main() { printf("* * * *\n"); printf("*\n"); printf("*\n"); printf("*\n"); printf("* * * *\n");
编写程序,用“*”输出字母C。 答案: #include void main() { printf("* * * *\n"); printf("*\n"); printf("*\n"); printf("*\n"); printf("* * * *\n");
以下哪种printf的用法正确 A: printf("%d",'a'); B: printf("%d",4.0); C: printf("%d",4); D: printf("%f",4);
以下哪种printf的用法正确 A: printf("%d",'a'); B: printf("%d",4.0); C: printf("%d",4); D: printf("%f",4);
【单选题】3 . Aron ______ water five days later. A . ran out B . used out C . ran out of D . used out of A. A . ran out B. B . used out C. C . ran out of D. D . used out of
【单选题】3 . Aron ______ water five days later. A . ran out B . used out C . ran out of D . used out of A. A . ran out B. B . used out C. C . ran out of D. D . used out of
Howabout_______for a walk? A: go out B: went out C: going out D: will go out
Howabout_______for a walk? A: go out B: went out C: going out D: will go out
若有以下定义:floatx;inta,b;则正确的switch语句是。 A: switch(a+b);{case1:printf("*");case2:printf("**");} B: switch(x){case1.0:printf("*");case2.0:printf("**");} C: switch(x){case1,2:printf("*");case3:printf("**");} D: switch(a+b){case1:printf("*");case1+2:printf("**");}
若有以下定义:floatx;inta,b;则正确的switch语句是。 A: switch(a+b);{case1:printf("*");case2:printf("**");} B: switch(x){case1.0:printf("*");case2.0:printf("**");} C: switch(x){case1,2:printf("*");case3:printf("**");} D: switch(a+b){case1:printf("*");case1+2:printf("**");}