C语言中有两种非常有用的运算符++和--,分别称为递增和递减运算符,对变量执行加1或减1操作,且运算结果仍赋给该变量。递增、递减运算符和负号一样都是单目运算符,统称单项算术运算符,如表所示:
...算符 ++这个运算符称之为“递增运算符” (increment operator),与之相对的是--这个 “递减运算符”(decrement operator),它 们都是一元运算符,可以出现在变量之前或变 量之后,它会自动将该变量的值递增1或递减1。
基于16个网页-相关网页
... |= 赋值按位或(bitwise OR assignment) -- 递减运算符(decrement) ( ) 括号(parentheses) ...
基于1个网页-相关网页
递增/递减运算符 Increment/Decrement Operators ; Incrementing / Decrementing operators
可以向前(通过使用递减运算符)或向后(通过使用递增运算符)访问元素。
Elements can be accessed in the forward direction by using the decrement operator and in the backward direction by using the increment operator.
迭代器的接口,该迭代器可以向前(通过使用递增运算符)或向后(通过使用递减运算符)访问容器中的元素。
Interface for an iterator that can access elements in a container in the forward direction by using the increment operator and in the backward direction by using the decrement operator.
定义一个迭代器,该迭代器可以向前(通过使用递增运算符)或向后(通过使用递减运算符)访问容器中的元素。
Defines an iterator that can access elements in a container in the forward direction by using the increment operator and in the backward direction by using the decrement operator.
应用推荐