| |
1-156 Abbildende C++-Sprache, v1.1 Juni 2003 1 Fixed& operator/=(const Fixed& val); Fixed& operator++(); Örtlich festgelegtes operator++(int); Operator Fixed& -- (); Örtlich festgelegter Operator -- (int); Örtlich festgelegtes operator+() const; Örtlich festgelegtes Operator-()const; Boolesches operator!()const; // andere Mitgliedsfunktionen Fixed_digits()const UShort; Fixed_scale()const UShort; }; istream&operator>>(istream& ist, val Fixed&); ostream&operator<<(ostream&-OS, const Fixed& val); Örtlich festgelegter Operator + (const Fixed& val1, const Fixed& val2); Örtlich festgelegter Operator - (const Fixed& val1, const Fixed& val2); Örtlich festgelegter Operator * (const Fixed& val1, const Fixed& val2); Örtlich festgelegter Operator/(const Fixed& val1, const Fixed& val2); Boolescher Operator > (const Fixed& val1, const Fixed& val2); Boolescher Operator < (const Fixed& val1, const Fixed& val2); Boolescher Operator > = (const Fixed& val1, const Fixed& val2); Boolescher Operator < = (const Fixed& val1, const Fixed& val2); Boolesches Operator== (const Fixed& val1, const Fixed& val2); Boolescher Operator! = (const Fixed& val1, const Fixed& val2); 1,42,5 Irgendeine Kategorie klassifizieren Sie irgendwelche { Öffentlichkeit: Any(); Anmerkung: Ausgabe 1700 Any(const Any&); ~Any(); Irgendein &operator=(const Any&); // spezielle Arten benötigte für Boolesches, Oktett, Putzfrau, // und gesprungene Zeichenketteeinfügung // diese sind nur vorgeschlagene Implementierungen struct from_boolean { from_boolean(Boolean B): val(b) { } Boolesches val; |  |
|
| |
|
|