详细题解(不是很详细,但还行)
2026-02-12 14:30:24
发布于:浙江
1阅读
0回复
0点赞
#include <iostream>//头文件,#include所以头文件的前缀,<>中间加头文件名。
using namespace std;//使用标准库。
int main() {//正式的代码的开始。
int a,b;//声明变量a和b。
cin>>a>>b; //输入a和b。
cout<<a+b<<'\n'; //"cout<<a+b"输出a+b的和。"'\n'"换行,可以省略。
return 0;//返回值为0,人话就是全部执行完。
}
全部评论 5
d
6天前 来自 浙江
1d
6天前 来自 浙江
1d
6天前 来自 浙江
1d
6天前 来自 浙江
1d
6天前 来自 浙江
1



有帮助,赞一个