7

C++ Programming Basics and Control Loops

LEARNING OBJECTIVES

At the end of this chapter, you should be able to

  • Write C++ programs with good grasp and understanding.

  • Understand data types and their usage.

  • Understand operators and their precedence and association rules.

  • Understand and use control loops.

7.1 Introduction

In this chapter, we introduce you to rich C++. We analyse the data types permitted by C++ language, together with various operators like logical operators and arithmetic operators. In Chapter 1, you have of course used these features, but in this chapter we will provide you with the underlying syntax and grammar of C++. We have shown the workings of various types of operators such as binary operators and unary operators ...

Get Object-oriented Programming Using C++ and Java 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.