C语言训练-求1+2!+3!+...+N!的和 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int f(int i){ if (i==1) return 1; else return i*…… 题解列表 2017年11月27日 0 点赞 0 评论 848 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int f(int i, int j){ if (i==1) return j; else re…… 题解列表 2017年11月27日 0 点赞 0 评论 1054 浏览 评分:0.0
【蟠桃记】 (C语言代码) 摘要:解题思路:本来是用1解答的,参考别人的解题思路后觉得2更喜欢所以一起发了。注意事项:参考代码:1:#include<stdio.h>int main(){ int n,i,t=1; while(sca…… 题解列表 2017年11月27日 0 点赞 0 评论 1017 浏览 评分:0.0
【蟠桃记】 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(){int i,n,sum=1;printf("请输入一个正整数n(1<n<30)\n");scanf("%d",&…… 题解列表 2017年11月27日 0 点赞 0 评论 840 浏览 评分:0.0
奖学金 (C语言代码) 摘要:解题思路: 结构体+快速排序参考代码:#include <stdio.h> #include <stdlib.h> struct stu { int num;//学号 int a,…… 题解列表 2017年11月27日 6 点赞 8 评论 2231 浏览 评分:9.8
数列 (C语言代码) 摘要:解题思路:找到规律是这道题目的关键。当k=3时,数列为 1 3 4 9 10 12 13 27 28 30 31 36 37 40 ... …… 题解列表 2017年11月27日 4 点赞 6 评论 2176 浏览 评分:9.9
C语言考试练习题_一元二次方程 (C++代码) 摘要:解题思路: int d = b*b-4*a*c; 1. d等于0,则两个根相等并等于负的2a分之b, 2. d大于0,则两个根不等,带入公式(-b-sqr…… 题解列表 2017年11月27日 3 点赞 0 评论 1337 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:这道题最关键的就是那两个long long ,错一般都在这,亲身体验参考代码:#include <stdio.h>int main(){ int n; long lon…… 题解列表 2017年11月27日 0 点赞 0 评论 971 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:这道题的错误点在于输出的顺序,要按照题目要求先后输出。参考代码:#include <stdio.h>int main(){ char ch; int a=0, b=0,…… 题解列表 2017年11月27日 0 点赞 0 评论 862 浏览 评分:0.0
C语言训练-阶乘和数* (也是笨办法,但是思路好理解),新手写的写的不好请见谅 摘要:#include<stdio.h> int fun(int); int main() { int i; for(i=1; i<=100000; i++) //循环判断 …… 题解列表 2017年11月27日 8 点赞 3 评论 1576 浏览 评分:8.7