📄 hour04_3.cpp
字号:
#include <iostream>
int main()
{
int a, b;
++a++;
// The line above should give you a compiler error! Comment it out.
// It doesn't really make sense to try to increment before
// and then after evaluation, does it? If you want to add 2
// you can do so with a += 2;
// or you can do something like:
b = ++a;
a++;
std::cout << "a is " << a << std::endl;
std::cout << "b is " << b << std::endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -