fig11_09.cpp

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

CPP
19
字号
// Fig. 11.9: fig11_09.cpp
// Calculating the sum of two integers input from the keyboard 
// with the cin oct and the stream-extraction operator.
#include <iostream.h>

int main()
{
   int x, y;

   cout << "Enter two integers: ";
   cin >> x >> y;
   cout << "Sum of " << x << " and " << y << " is: " 
        << ( x + y ) << endl;

   return 0;
}


⌨️ 快捷键说明

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