|
|
C Traps and Pitfalls中说
- Compound assignment operators such as += are [color=Red]really multiple tokens[/color]. Thus,
- a + /* strange */ = 1
- means the same as
- a += 1
- These operators are the [color=Red]only cases[/color] in which things that look like single tokens are really multiple tokens.
复制代码
但我在gcc4下发现写成+ =后编译不能成功!
不知道是不是gcc不支持?
还是。。。。。。。 :help :help |
|