显然你没有得到这个,所以我会给出一个提示:
转动你的功能
function FeldMinimumPos (Feld : tFeld; von, bis:tIndex): tIndex;
进入程序:
procedure FeldMinimumPos(feld: TFeld; von, bis: TIndex; var pos: TIndex); { finds the position of the minimum inside the field between von and bis, 1 <= von <= bis <= FELDGROESSE } var j: TIndex; begin pos := von; for j := von + 1 to bis do if feld[j] < feld[pos] then pos := j; end; { FeldMinimumPos }
并称之为:
FeldMimimumPos(EingabeFeld, i, FELDGROESSE, MinPos);
你应该没事
但是,有几点评论:
end
const
FELDGROESSE