设有以下说明:type t1=file of integer; var f1:t1;n:integer; 且abc.dat是t1型文件,下面正确的程序段是 Aassign(f1,‘abc.dat‘); write(f1,n); rewrite(f1); close(f1);Bassign(f1,‘abc.dat‘); reset(f1); readln(f1,n); close(f1);Cassign(f1,‘abc.dat‘); rewrite(f1); writeln(f1,n); close(f1);Dassign(f1,‘abc,dat‘); rewrite(f1); read(f1,n); close(f1);
设有以下说明:type t1=file of integer; var f1:t1;n:integer; 且abc.dat是t1型文件,下面正确的程序段是
Aassign(f1,‘abc.dat‘); write(f1,n); rewrite(f1); close(f1);
Bassign(f1,‘abc.dat‘); reset(f1); readln(f1,n); close(f1);
Cassign(f1,‘abc.dat‘); rewrite(f1); writeln(f1,n); close(f1);
Dassign(f1,‘abc,dat‘); rewrite(f1); read(f1,n); close(f1);
相关考题:
以下所列的各函数首部中,正确的是 ( )A.void play (var:Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)
以下所列的各函数首部中,正确的是A.void play(var :Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)
以下程序的功能是:输出a、b、c三个变量中的最小值。 include main( ) {int a,b,c,t 1,t2; 以下程序的功能是:输出a、b、c三个变量中的最小值。include <stdio.h>main( ){ int a,b,c,t 1,t2;scanf("%d%d%d",a,b,c);t1=a<b ?【 】;t2=c<t1?【 】;printf("%d\n", t2 );}
以下所列的各函数首部中,正确的是______。A.void play(var:Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)
以下所列的各函数首部中,正确的是:()A.void play(var :Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)
以下所列的各函数首部中,正确的是A.void play(var :Integer,var b:Integer)B.void play(int a,b)C.void play(int a,int b)D.Sub play(a as integer,b as integer)
以下所列的各函数首部中,正确的是()。A.void play(int a,b)B.void play(var :Integer,var b:Integer)C.void play(int a,int b)D.Sub play(a as integer,b as integer)
以下所列的函数首部说明形式中,正确的是___A.void play(var :Integer,var b:Integer)B.void play(int a,int b)C.void play(int a,b)D.Sub play(a as integer,b as integer)