Autor Beitrag
hansi_86
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Mo 13.03.06 10:40 
Ich hab ein ganz einfaches Probem.
Ich bin dabei ein Programm für die Schule zu schreiben
und frage mich, wie folgendes kürze:


ausblenden Delphi-Quelltext
1:
repeat until (feld[x,y]>7)and figurfeld(feld[x,y]<9);					


Man kann von Teilmengen sprechen mit:

ausblenden Delphi-Quelltext
1:
if a in [7..9] then					

Aber wie fragt man ob etwas nicht Teilmenge ist.

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt


Zuletzt bearbeitet von hansi_86 am Mo 13.03.06 13:17, insgesamt 1-mal bearbeitet
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 13.03.06 10:47 
ausblenden Delphi-Quelltext
1:
if not (a in [7..9]) then {...}					

_________________
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.
hansi_86 Threadstarter
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Mo 13.03.06 10:57 
Danke! : :lol:
Ist einfach, aber ich kam nicht drauf.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 13.03.06 11:01 
Hallo!

Ändere doch bitte den Titel Deines Threads. Im Moment haben Titel und Inhalt nicht viel miteinander zutun :zwinker:

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".