C++ Syntax

Bit level operations:

Name

VB

C++

Bitwise ANDAnd&
Bitwise OROr|
Bitwise XORXor^
Bit-shift rightN/A>>
Bit-shift leftN/A<<

Logical Boolean operations:

Name

VB

C++

Logical ANDAnd&&
Logical OROr||
Logical NOTNot!

Comparison:

Name

VB

C++

Is equal to===
Is not equal to<>!=
Is less than>>
Is less than or equal to>=>=
Is greater then<<
Is greater than or equal to<=<=

Mathematics:

Name

VB

C++

Addition++
Subtraction--
Multiplication**
Division//
Modulus divisionMod%

Shorthand notation:

Name

C++

Increment++
Decrement--
Addition assignment+=
Subtraction assignment-=
Division assignment/=
Multiplication assignment*=
Modulus assignment%=
Right shift assignment>>=
Left shift assignment<<=
Bitwise AND assignment&=
Bitwise XOR assignment^=
Bitwise OR assignment|=

Back to the index