21xrx.com
2024-11-25 03:17:43 Monday
登录
文章检索 我的文章 写文章
C++中常用的操作符的英文名称
2023-07-04 09:13:35 深夜i     --     --
Operator C++ operators Unary operator Binary operator Ternary operator

In programming, operators are symbols or keywords that perform a specific operation on one or more operands. C++ is a popular programming language that uses a variety of these operators to manipulate data. Here are some commonly used operators in C++ along with their English names:

1. Arithmetic operators: These operators perform basic math functions such as addition, subtraction, multiplication, division, and modulo. The English names for these operators are plus, minus, times, divided by, and modulo respectively.

2. Logical operators: These operators are used to perform logical operations such as AND, OR, and NOT. The English names for these operators are AND, OR, and NOT respectively.

3. Comparison operators: These operators are used to compare two values and return true or false based on the comparison. The English names for these operators are equal to, not equal to, greater than, less than, greater than or equal to, and less than or equal to.

4. Assignment operators: These operators are used to assign a value to a variable. The English names for these operators are equals, plus equals, minus equals, times equals, and divided by equals.

5. Increment and decrement operators: These operators are used to increase or decrease the value of a variable by one. The English names for these operators are increment and decrement respectively.

6. Bitwise operators: These operators are used to perform bitwise operations on binary numbers. The English names for these operators are AND, OR, XOR, shift left, and shift right.

Understanding these operators is a crucial part of learning C++. By knowing these operators and their English names, programmers can write efficient and effective code.

  
  

评论区

{{item['qq_nickname']}}
()
回复
回复