O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

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

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

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