Autor Beitrag
Schnuppe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 23.04.07 14:33 
Hallo!

Ich würde gerne wissen ob ich mit meiner Vermutung richtig liege:

folgende Bedingung:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
image1.canvas.moveto (x[k],y[k]9;
{es gelte 1<=k<=m}
for i:=1 to m do

if i<>k then

image1.canvas.lineto [x[i],y[i];


Ich würde das folgendermaßen "übersetzen":

k liegt zwischen 1 und m.

Für i=1 bis m prüfe folgendes ab:

ist i ungleich k? wenn ja dann mache folgendes:

ziehe eine linie zu i

ergo: ausgabe eines linienzugs durch alle punkte außer punkt k.


ist das richtig???? Habe hier nämlich mehrere Antworten zur Auswahl.

Vielen Dank.

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 23.04.07 15:10 
Welche Info-Klausur beantworten wir Dir damit???

Sagen wir's aber mal so: Deine Antwort ist nur teilweise korrekt. Beachte mal Zeile 1 ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Schnuppe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 23.04.07 15:16 
also dann würde ich schon sagen:

gehe auf den Punkt k und verbinde von dort aus alle Punkte die ungleich k sind.

Liege ich jetzt richtig?

Denn ich sage ja: "Bewege dich zu x[k],y[k]...."
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 23.04.07 15:19 
Jup, dann ist's schon eher korrekt. Die eigentliche Lösung hängt von den vorhandenen Antworten ab.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Schnuppe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 23.04.07 15:24 
Dankeschön!