虚
虚名
Unregistered / Unconfirmed
GUEST, unregistred user!
有个朋友在bbs上问了一个问题,我不能指出错误,故请各位大哥帮忙!
program filecreate(oddfile,output);
const
maxodd=999;
type
numberfile=FILE OF integer;
var
oddfile:numberfile;
odds:integer;
begin
rewrite(oddfile)
odds:=1;
while odds<=maxodd do
begin
oddfile^:=odds;
put(oddfile);
odds:=odds+2;
end;
writeln('file oddfile created');
end.
program filecreate(oddfile,output);
const
maxodd=999;
type
numberfile=FILE OF integer;
var
oddfile:numberfile;
odds:integer;
begin
rewrite(oddfile)
odds:=1;
while odds<=maxodd do
begin
oddfile^:=odds;
put(oddfile);
odds:=odds+2;
end;
writeln('file oddfile created');
end.