📄 fig11_09.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -