[编程入门]自定义函数之数字后移 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,m,a[1000]; scanf("%d",&n); for(i=0;i<n;i++) { s…… 题解列表 2019年05月01日 0 点赞 0 评论 456 浏览 评分:0.0
【亲和数】 (C++代码)水一下就过了...... 摘要:解题思路: 真的水一下就过了......题目可以更难一点的。。 思路就是线性搜索直接判断咯/参考代码:#include<bits/stdc++.h> #define hh ios::sy…… 题解列表 2019年05月01日 0 点赞 0 评论 1565 浏览 评分:0.0
C语言训练-最大数问题 (C语言代码) 摘要:解题思路:将输入函数放在while循环测试条件内,scnaf的返回值为1的时候输入成功,输入成功后输入的值不等于-1的时候进入循环体;输入成功后i的数值就为-1之前整数的个数,然后在进行循环找最大值。…… 题解列表 2019年05月01日 1 点赞 0 评论 765 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:解题思路: 利用嵌套循环,外层循环让n个数相加,内层循环处理每个项。注意事项: sum1在每次进入循环体之前要重置。参考代码:#include<stdio.h>int main(void){ …… 题解列表 2019年05月01日 1 点赞 0 评论 526 浏览 评分: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 评论 663 浏览 评分: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 评论 544 浏览 评分: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 评论 555 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (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 评论 523 浏览 评分:0.0
[编程入门]宏定义之闰年判断 (C语言代码)。。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define run if(y%4==0&&y%100!=0||y%400==0) printf("L"); else printf(…… 题解列表 2019年05月01日 0 点赞 0 评论 576 浏览 评分:0.0