太简单了,直接上代码吧 C++复制#include<bits/stdc++.h>//万能头文件 using namespace std; int a,b;//两个数 int main() { cin>>a>>b;//输入 cout<<a+b;//直接输出 return 0; }