Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.184 Beiträge
Delphi 12 Athens
|
AW: Generics Fehler in TQueue?
27. Feb 2012, 12:52
Zitat:
Delphi-Quellcode:
{ Show the last enqueued element without modifying the Queue. }
MessageDlg('First enqueued element is: "' + Queue.Peek() + '".', mtInformation, [mbOK], 0);
...
{ Show the last enqueued element by modifying the Queue. }
MessageDlg('First enqueued element is: "' + Queue.Dequeue() + '".', mtInformation, [mbOK], 0);
Oder eine kleine Änderung und schon paßt es:
Delphi-Quellcode:
{ Show the last enqueued element without modifying the Queue. }
MessageDlg('First element is: "' + Queue.Peek() + '".', mtInformation, [mbOK], 0);
...
{ Show the last enqueued element by modifying the Queue. }
MessageDlg('Enqueued element is: "' + Queue.Dequeue() + '".', mtInformation, [mbOK], 0);
$2B or not $2B
|
|
Zitat
|