主题:到底是哪里错了?
我的整个程序是这样的:
program aaa(input,output);
var i,k,j:integer;input,output:file;
begin
assign(input,'aaa.in');
reset(input);
assign(output,'aaa.out');
rewrite(output);
for i:=1 to 9 do
begin
write('',20-i*2);
for j:=1 to i do
write(j:2);
for k:=(i-1) downto 1 do
write(k:2);
writeln();
end;
close(input);
close(output);
end.
一运行,就出现"exited with exitcode=2"的提示,usecreen上也出现"runtime error 2 at 0x00004E6".是怎么回事呀。?谢谢。
program aaa(input,output);
var i,k,j:integer;input,output:file;
begin
assign(input,'aaa.in');
reset(input);
assign(output,'aaa.out');
rewrite(output);
for i:=1 to 9 do
begin
write('',20-i*2);
for j:=1 to i do
write(j:2);
for k:=(i-1) downto 1 do
write(k:2);
writeln();
end;
close(input);
close(output);
end.
一运行,就出现"exited with exitcode=2"的提示,usecreen上也出现"runtime error 2 at 0x00004E6".是怎么回事呀。?谢谢。