Autor Beitrag
malibu85
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Fr 21.12.07 00:26 
hallo, kann mir jemand ne referenz darüber geben über welche unären arithmetischen Operationen Object Pascal verfügt?
LorenzS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

MS-DOS, WIN 7, WIN 10
BP7.0, D3, D5
BeitragVerfasst: Fr 21.12.07 00:32 
meist du sowas wie ?:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
inc(i);   //i++;
inc(i,2); //i+=2;
dec(i);   //i--;
dec(i,2); //i-=2;
malibu85 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Fr 21.12.07 00:48 
danke
Reinhard Kern
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 591
Erhaltene Danke: 14



BeitragVerfasst: Fr 21.12.07 03:41 
user profile iconmalibu85 hat folgendes geschrieben:
hallo, kann mir jemand ne referenz darüber geben über welche unären arithmetischen Operationen Object Pascal verfügt?


Hallo, die einfachste: x := -x;

Gruss Reinhard
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Fr 21.12.07 07:56 
Inc ist kein Operator, sondern eine Prozedur.
'Ord','Chr', 'Succ', 'Pred' etc. sind unäre Funktionen.
'-' und '+' unäre Operatoren auf Zahlen.
NOT ist ein unärer Operator auf Boolsche Werte.

user profile iconWikipedia hat folgendes geschrieben:
Einstellige Verknüpfung

In der Mathematik ist eine einstellige Verknüpfung (auch unäre oder monadische Verknüpfung) eine Verknüpfung mit nur einem Operanden. Zum Beispiel ist die logische Negation eine einstellige Verknüpfung von Wahrheitswerten, und das Quadrieren ist eine einstellige Verknüpfung auf den reellen Zahlen.

Eine einstellige Verknüpfung auf einer Menge S ist nichts anderes als eine Funktion von S nach S.

_________________
Na denn, dann. Bis dann, denn.