ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Rangfolge der Operatoren ßßßßßßßßßßßßßßßßßßßßßßßßßß In der folgenden Tabelle, die die Rangfolge der Operatoren darstellt, sind die Borland C++ Operatoren in 16 Kategorien unterteilt. Die Kategorie 1 hat die h”chste Priorit„t; die Kategorie 2 (Un„re Operatoren) hat die zweith”chste Priorit„t usw. bis zum Komma-Operator, der die niedrigste Priorit„t besitzt. Die Operatoren innerhalb einer Kategorie haben den gleichen Rang. Die un„ren (Kategorie 2), konditionalen (Kategorie 14) und Zuweisungsoperatoren (Kategorie 15) ordnen von rechts nach links zu, alle anderen von links nach rechts. ĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶŃĶĶĶĶĶĶĶĶĶĶŃĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶ # Kategorie ³ Operator ³ Beschreibung ĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶŲĶĶĶĶĶĶĶĶĶĶŲĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶ 1. ³ () ³ Funktionsaufruf ³ [] ³ Array-Subskript ³ -> ³ Indirekte Komponentenauswahl in C++ ³ :: ³ Gltigkeitsbereichszugriff ³ ³ und Zugriffsaufl”sung in C++ ³ . ³ Direkte Komponentenauswahl in C++ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 2. Un„r ³ ! ³ Logische Negation (NOT) ³ ~ ³ Bitweises Komplement ³ + ³ Un„res Plus ³ - ³ Un„res Minus ³ ++ ³ Pr„- oder Post-Inkrementierung ³ -- ³ Pr„- oder Post-Dekrementierung ³ & ³ Adresse ³ * ³ Umleitung ³ sizeof ³ Gibt die Gr”įe des Operanden in Bytes zurck ³ new ³ Dynamische Speicherzuweisung in C++ ³ delete ³ Dynamische Speicherfreigabe in C++ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 3. Zugriff auf³ .* ³ C++ Dereferenzierung Klassen- ³ ->* ³ C++ Dereferenzierung elemente ³ ³ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 4. Multipli- ³ * ³ Multiplikation kativ ³ / ³ Division ³ % ³ Modulo CRest ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 5. Additiv ³ + ³ Bin„res Plus ³ - ³ Bin„res Minus ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 6. Shift ³ << ³ Shift links ³ >> ³ Shift rechts ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 7. Relational ³ < ³ Kleiner ³ <= ³ Kleiner gleich ³ > ³ Gr”įer ³ >= ³ Gr”įer gleich ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 8. Gleichheit ³ == ³ Gleich ³ != ³ Ungleich ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 9. ³ & ³ Bitweises UND ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 10. ³ ^ ³ Bitweises XOR ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 11. ³ | ³ Bitweises ODER ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 12. ³ && ³ Logisches UND ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 13. ³ || ³ Logisches ODER ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 14. Bedingung ³ ?: ³ (a ? x : y bedeutet ³ ³ ("wenn a dann x, sonst y") ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 15. Zuweisung ³ = ³ Einfache Zuweisung ³ *= ³ Produkt zuweisen ³ /= ³ Quotient zuweisen ³ %= ³ Rest zuweisen (Modulo) ³ += ³ Summe zuweisen ³ -= ³ Differenz zuweisen ³ &= ³ Bitweises UND zuweisen ³ ^= ³ Bitweises XOR zuweisen ³ |= ³ Bitweises ODER zuweisen ³ <<= ³ Linksschieben zuweisen ³ >>= ³ Rechtsschieben zuweisen ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 16. Komma ³ , ³ Auswerten ĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĻĶĶĶĶĶĶĶĶĶĶĻĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶĶ Alle Operatoren auįer den folgenden k”nnen berladen werden: . Direkte Komponentenauswahl in C++ .* C++ Dereferenzierung :: Gltigkeitsbereichszugriff und Zugriffsaufl”sung in C++ ?: Bedingung