摘要: 大家应该都会,小编就不讲啦,直接看代码讲义吧! 点击查看代码 #include <bits/stdc++.h> using namespace std; int main () { int a;//定义a int b;//定义b cin>>a>>b;//输入a,b cout<<a+b;//输出a+b 阅读全文
posted @ 2026-08-21 16:22 liyunduo 阅读(1) 评论(0) 推荐(0)
摘要: c++中采用cout<<输出内容<<endl; 其中endl可以使下一个输出内容换行。 点击查看代码 #include <bits/stdc++.h> using namespace std; int main(){ cout<<" ********"<<endl; cout<<" ******** 阅读全文
posted @ 2026-08-19 20:03 liyunduo 阅读(5) 评论(0) 推荐(0)