[编程入门]宏定义练习之三角形面积 (C语言代码)。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S s=(a+b+c)/2.0;#define AREA area=sqrt(s*(s-…… 题解列表 2019年05月01日 0 点赞 0 评论 619 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码)。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N(x,y) t=x%y;int main(){ int x,y,t; scanf("%d%d",&x,&y); N(x…… 题解列表 2019年05月01日 0 点赞 0 评论 685 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码)。。。。。 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#define N(x,y) t=x;x=y;y=t;int main(){ int x,y,t; scanf("%d%d",&x,…… 题解列表 2019年05月01日 0 点赞 0 评论 691 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 (C语言代码)。。。来看看 摘要:解题思路:简单注意事项:无参考代码:#include<stdio.h>#include<string.h>#define N 100int a,b,c,d;void fun(char sa[N]){ …… 题解列表 2019年05月01日 0 点赞 0 评论 856 浏览 评分:0.0
敲七游戏 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() 题解列表 2019年05月01日 0 点赞 0 评论 2101 浏览 评分:9.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:解题思路: 利用嵌套循环,外层循环让n个数相加,内层循环处理每个项。注意事项: sum1在每次进入循环体之前要重置。参考代码:#include<stdio.h>int main(void){ …… 题解列表 2019年05月01日 1 点赞 0 评论 615 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415int main(){ double r; int n; scanf("%d",&n); while(…… 题解列表 2019年05月01日 0 点赞 0 评论 631 浏览 评分:2.0
C语言训练-最大数问题 (C语言代码) 摘要:解题思路:将输入函数放在while循环测试条件内,scnaf的返回值为1的时候输入成功,输入成功后输入的值不等于-1的时候进入循环体;输入成功后i的数值就为-1之前整数的个数,然后在进行循环找最大值。…… 题解列表 2019年05月01日 1 点赞 0 评论 885 浏览 评分:0.0
【亲和数】 (C++代码)水一下就过了...... 摘要:解题思路: 真的水一下就过了......题目可以更难一点的。。 思路就是线性搜索直接判断咯/参考代码:#include<bits/stdc++.h> #define hh ios::sy…… 题解列表 2019年05月01日 0 点赞 0 评论 1802 浏览 评分:0.0