C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:#include <stdio.h>#include <math.h>int main(){ int i,j,s,a,k=0,b=0; scanf("%d %d",&a,&j); for(i=0;i<…… 题解列表 2017年09月29日 0 点赞 0 评论 1211 浏览 评分:8.0
剪刀石头布 (C语言代码) 摘要:解题思路:写的没什么新意,就是好理解。:)注意事项:参考代码:#include<stdio.h>int main(){enum ssc{stone,scissors,cloth} ssc1,ssc2;…… 题解列表 2017年10月01日 1 点赞 2 评论 2236 浏览 评分:8.0
WU-格式化数据输出 (C语言代码) 摘要:解题思路: 数清楚每个数字所占的位数,用数组将其保存按格式输出 注意事项: 这是采用另一位同学的答案 觉的写的很棒参考代码:#include<stdio.h> int main(…… 题解列表 2017年12月08日 2 点赞 0 评论 2057 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:看清楚题目意思,是要求写两个函数(一个是主函数main(),另一个是提取元音的函数yunyin())。从主函数输入待提取的字符序列,用gets(yy)函数即可,然后调用yunyin()函数,…… 题解列表 2017年10月09日 2 点赞 1 评论 1091 浏览 评分:8.0
C语言训练-亲密数 (C语言描述,反正怎么都能对) 摘要:#include <stdio.h> //反正怎么都能对 void main() { int i,o,A,B; for (i=2;i<=3000;i++) { A…… 题解列表 2017年10月22日 1 点赞 3 评论 2739 浏览 评分:8.0
陈教主的三角形 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a[100],b[100],c[100],i,j=0; while(~scanf("%d %…… 题解列表 2017年10月22日 1 点赞 0 评论 1550 浏览 评分:8.0
Quadratic Equation (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main(){ double a,b,c; scanf("%lf %lf %lf…… 题解列表 2017年10月22日 1 点赞 3 评论 1177 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题7.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 逆序输出 */ #include<stdio.h> #define N 10 void func(int arr[]) { int i; …… 题解列表 2017年10月26日 0 点赞 0 评论 1139 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:so easy注意事项:参考代码:#include<stdio.h>int main(){ int x;char a; scanf("%d",&x); if(x<60) a…… 题解列表 2017年10月28日 0 点赞 0 评论 917 浏览 评分:8.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,max,min; int i=1; scanf("%d%d",&a,&b); …… 题解列表 2017年11月02日 7 点赞 1 评论 1463 浏览 评分:8.0