我想在大小为 10X10 的矩阵中的最后一列之后添加一些列。我编写了如下代码:
for i:=1 to N
do
begin
for j:=1 to N do
if j = N then
begin
if fileexists('d:\A\'+'img'+inttostr(I)+' '+'0'+'.bmp') then
Write(f,input^[i]^[j],' ','0')
end
else
Write(f,input^[i]^[j],' ','1');
但是这段代码在其他列之间添加了列。谁能解决这个问题?