Thema: Delphi Matrizen-Multiplikation

Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#6

Re: Matrizen-Multiplikation

  Alt 14. Jun 2007, 13:50
Hallo,

vielleicht kommst du deinem Fehler so auf die Spur:

Delphi-Quellcode:
// ...
      for i:= 0 to b-1 do
        for j:= 0 to c-1 do
          if (i < SG2.ColCount) and (h < SG2.RowCount)
            then MatrixB[i,j] := StrToFloat(SG2.Cells[i,j])
            else ShowMessage(Format('Index out of Bounds: SG2.Cells[%d,%d]', [i, j]));
Grüße vom marabu
  Mit Zitat antworten Zitat