⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hour04_3.cpp

📁 《24学时精通c++》的随书源码的下半部分。欢迎下载学习。
💻 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 + -