fig03_21.cpp

来自「经典vc教程的例子程序」· C++ 代码 · 共 15 行

CPP
15
字号
// Fig. 3.21: fig03_21.cpp
// References must be initialized
#include <iostream.h>

int main()
{
   int x = 3, &y = x;  // y is now an alias for x

   cout << "x = " << x << endl << "y = " << y << endl;
   y = 7;
   cout << "x = " << x << endl << "y = " << y << endl;

   return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?