Contents
Section 14.2 Input and Output Operators
Section 14.3 Arithmetic and Relational Operators
Section 14.4 Assignment Operators
Section 14.5 Subscript Operator
Section 14.6 Increment and Decrement Operators
Section 14.7 Member Access Operators
Section 14.8 Function-Call Operator
Section 14.9 Overloading, Conversions, and Operators
In Chapter 4, we saw that C++ defines a large number of operators and automatic conversions among the built-in types. These facilities allow programmers to write a rich set of mixed-type expressions.
C++ lets us define what the operators mean when applied to objects of class type. It also lets us define conversions for class types. Class-type conversions ...
Get C++ Primer, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.