Skip to Content
Introduction to Design Patterns in C++ with Qt, 2nd Edition
book

Introduction to Design Patterns in C++ with Qt, 2nd Edition

by Alan Ezust, Paul Ezust
September 2011
Intermediate to advanced
768 pages
15h 18m
English
Pearson
Content preview from Introduction to Design Patterns in C++ with Qt, 2nd Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

An Introduction to Design Patterns in C++ with Qt 4

An Introduction to Design Patterns in C++ with Qt 4

Alan Ezust, Paul Ezust
Programming with Qt, 2nd Edition

Programming with Qt, 2nd Edition

Matthias Kalle Dalheimer

Publisher Resources

ISBN: 9780132851619Purchase book