Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#5

Re: primitives mau mau spiel

  Alt 17. Mai 2006, 15:10
kannst Du mal bitte schreiben, was für ein Typ stapel ist
Ich denke mal ein set of irgendwas
aber kann man von einem Set etwas subtrahieren?

Stapel := Stapel - [KartenWert];

Vielleicht ist das besser:

Zitat:
Removes an element from a set.
Unit

System

Category

set handling routines

procedure Exclude(var S: set of T;I:T);

Description

The Exclude procedure removes element I from set S.
S is a set type variable, and I is an expression of a type compatible with the base type of S.
The construct Exclude (S, I) corresponds to S := S - (I) but the Exclude procedure generates more efficient code.
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat