Autor Beitrag
phinni
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Do 19.03.09 21:10 
Huhu,
ich möchte eine Wertetabelle machen.... man soll einen anfangswert eingeben können, mit dem die wertetabelle beginnt... sie endet 10 einheiten später (in 1er schritten) .... leider funzt dies aber nicht und ich habe keine Ahnung warum =(
bin für jede hilfe dankbar !!! ;) p.s.: es handelt sich um eine ganzrationale fkt. 3.grades

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.Button5Click(Sender: TObject);
var i,hilf2,startwert : integer;
    wert : real;
begin
stringgrid1.Cells[0,0] := 'x: ';
stringgrid1.Cells[0,1] := 'y: ';
hilf2 := startwert;
for i := 1 to 10 do begin
wert := hilf2*hilf2*hilf2*a + hilf2*hilf2*b + hilf2*b + d;        // a,b,c,d sind die parameter... schon eingelesen ;)
stringgrid1.Cells[0,i] := floattostr(wert);
stringgrid1.Cells[1,i] := inttostr(hilf2);
hilf2 := hilf2 + 1;
end;
end;


Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 20.03.09 16:01 
Was funzt genau nicht? Fehler?

_________________
Markus Kinzler.