第一个 Hello World 程序 摘要: #include using namespace std; int main() { cout …… 题解列表 2022年10月06日 0 点赞 0 评论 246 浏览 评分:0.0
简单的 a + b 摘要: #include using namespace std; int main() { int a, b; while (cin >…… 题解列表 2022年10月06日 0 点赞 0 评论 348 浏览 评分:9.9
1046-自定义函数之数字后移 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void back(int n,int m,int a[]) //数组作形参,数组大小可以省略…… 题解列表 2022年10月06日 0 点赞 0 评论 409 浏览 评分:0.0
题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y; cin>>x>>y; int a=…… 题解列表 2022年10月06日 0 点赞 0 评论 841 浏览 评分:9.9
计算(a+b)*c的值 摘要:解题思路:和2763一样,要先输入a,b,c,再算(按照公式)注意事项:cin和cout后带的符号不同参考代码:#include<iostream> using namespace std; …… 题解列表 2022年10月05日 0 点赞 0 评论 1857 浏览 评分:8.0
计算(a+b)/c的值 摘要:解题思路:先把a,b,c输入,再算(按照公式就行了)注意事项:参考代码:#include<iostream> using namespace std; …… 题解列表 2022年10月05日 0 点赞 0 评论 537 浏览 评分:6.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:1,他们转行了,不是一排的!(相关结尾语————endl;)2,数清楚有多少“*”,否则是错的。3,如果要转行,别把这个“ ”的符号忘了参考代码:#include<iostream…… 题解列表 2022年10月05日 0 点赞 0 评论 356 浏览 评分:9.9
1037-宏定义的练习 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define REM(x,y) t=x%yint main(){ int a,b,t; ci…… 题解列表 2022年10月05日 0 点赞 0 评论 313 浏览 评分:0.0
1036-带参数宏定义练习 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define SWAP(x,y) {int t=x;x=y;y=t;} int main()…… 题解列表 2022年10月05日 0 点赞 0 评论 284 浏览 评分:0.0
1035-自定义函数之字符类型统计 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;void count(string s){ int a=0,…… 题解列表 2022年10月05日 0 点赞 0 评论 276 浏览 评分:0.0