O'Reilly logo

An Introduction to Design Patterns in C++ with Qt™, Second Edition by Paul Ezust, Alan Ezust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 19: Types and Expressions

This chapter seeks to provide a deeper understanding of C++’s strong typing system and shows how expressions are evaluated and converted.

Here we formally define some terms that we have been using. Operators are special kinds of functions that perform calculations on operands and return results. Operands are the arguments supplied to an operator.

Operators can be thought of as ordinary functions, except that you can call some of them using infix operator symbols (e.g., +, -, *, /, etc.). Thus, in addition to the longer function-call syntax (e.g., str3 = operator+(str1, str2); ) you can use the more readable infix systax (e.g., str3 = str1 + str2; ).

An expression can consist of a single operand, multiple operands ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required