我想在 C++ 程序的运行时输入用户输入,即在 ./a.out 插图:./a.out input1 input2
C++ 程序是:
两个数字相加的程序
#include<iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
int c = a + b;
cout << "The sum of two numbers is : " << c << "\n";
}
现在请帮助我在运行时输入 a 和 b 的值,同时在 linux 终端中运行其输出文件。