1036: [编程入门]带参数宏定义练习 摘要:```cpp #include #define change(a,b) t=a,a=b,b=t int main() { int a,b,t; scanf("%d %d",&a,&b…… 题解列表 2022年12月06日 0 点赞 0 评论 458 浏览 评分:6.0
1037: [编程入门]宏定义的练习 摘要:```cpp #include #define S(a,b) a%b int main() { int a,b; scanf("%d %d",&a,&b); printf("%d…… 题解列表 2022年12月06日 0 点赞 0 评论 629 浏览 评分:9.9
1038: [编程入门]宏定义练习之三角形面积 摘要:```cpp #include #define S(a,b,c) (a+b+c)/2 #define area(S,a,b,c) sqrt(S*(S-a)*(S-b)*(S-c)) int m…… 题解列表 2022年12月06日 0 点赞 0 评论 747 浏览 评分:9.9
1039: [编程入门]宏定义之闰年判断 摘要:```cpp #include #define LEAP_YEAR(y) (y%100!=0&&y%4==0||y%400==0)?'L':'N' int main() { int y;…… 题解列表 2022年12月06日 0 点赞 0 评论 980 浏览 评分:7.0
1055: 二级C语言-进制转换 摘要:```cpp #include int main() { int n; scanf("%d",&n); printf("%o\n",n); return 0; } `…… 题解列表 2022年12月06日 0 点赞 0 评论 387 浏览 评分:9.9
c++三行题解 摘要:解题思路:使用强转输出数据注意事项:while的循环读入参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int…… 题解列表 2022年12月07日 0 点赞 0 评论 421 浏览 评分:9.9
[编程入门]自定义函数之数字分离 c语言 递归求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void separate(int n){ int temp=n%10; n/=10; if(n)separate(…… 题解列表 2022年12月07日 0 点赞 0 评论 364 浏览 评分:9.0
1041: [编程入门]宏定义之找最大数 摘要:```c #include #define maxx(x,y,z) (x>y?x:y)>z?(x>y?x:y):z double computer(double x,double y,doubl…… 题解列表 2022年12月07日 0 点赞 0 评论 380 浏览 评分:9.9
1047: [编程入门]报数问题 摘要:```cpp #include int nodes[150]; int main() { int n,m=3; scanf("%d",&n); for(int i=0;i1) …… 题解列表 2022年12月07日 0 点赞 0 评论 322 浏览 评分:9.9
表达式括号匹配(stack) 摘要:解题思路: 运用栈的性质 ```cpp #include using namespace std; int main() { string s; getline(cin, s);//…… 题解列表 2022年12月07日 0 点赞 0 评论 787 浏览 评分:9.9