Introducing Operators

Tips/C++ Eng2015.11.01 23:40

Because you will start to learn about control statements in C++, it's important to understand the C++ operators that exist in the language first, as they play an important role in control statements.

You will work with comparison operators to determine if values are equal, greater, or less than each other.  C++ also allows you to use mathematical operators for incrementing values to help control the number of iterations in a loop.  You can also make use of bitwise operators to speed up some operations in your code. 

+= (y += x)same as y = y + x
-= (y -= x)same as y = y - x
*= (y *= x)same as y = y * x
++increment by 1
--decrement by 1
==equal to
!=not equal to
>greater than
<less than
>=greater than or equal to
<=less than or equal to
&&logical AND
||logical OR
!logical NOT

This contents come from edx : Introduction to C++

'Tips > C++ Eng' 카테고리의 다른 글

The Conditional (Ternary : 3중 조건문)  (0) 2015.11.04
switch Statments  (0) 2015.11.04
Introducing Operators  (0) 2015.11.01
Unions Quiz  (0) 2015.10.27
Enumerations  (0) 2015.10.27
Unions  (0) 2015.10.27


Posted by 비타오백

관련 글

댓글 영역

티스토리 툴바