C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路: 多用用ctype里面的函数就行了注意事项: 要现用isgraph函数,再用isgraph函数,不然会全部归类为isgraph函数的数上参考代码:#include <stdio.…… 题解列表 2017年11月28日 3 点赞 0 评论 2534 浏览 评分:8.5
做幻方 (C语言代码) 摘要:解题思路:#include <stdio.h> #define MOVE magic[y-1][x+1] int main() { int n; while (scanf("%d"…… 题解列表 2017年11月28日 0 点赞 0 评论 1506 浏览 评分:8.0
Hello, world! (C语言代码) 摘要:#include <stdio.h> int main() { int a[100],i=0,m; while(scanf("%d",&a[i])!=EOF) { i++; …… 题解列表 2017年11月28日 1 点赞 0 评论 1083 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.4 (C语言代码) 摘要:#include <stdio.h> int main() { int a[3][3],b[3][3],i,j; for(i=0;i<3;i++) for(j=0;j<3;j++) …… 题解列表 2017年11月28日 1 点赞 0 评论 1078 浏览 评分:0.0
C语言训练-阶乘和数* (也是笨办法,但是思路好理解),新手写的写的不好请见谅 摘要:#include<stdio.h> int fun(int); int main() { int i; for(i=1; i<=100000; i++) //循环判断 …… 题解列表 2017年11月27日 8 点赞 3 评论 1579 浏览 评分:8.7
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:这道题的错误点在于输出的顺序,要按照题目要求先后输出。参考代码:#include <stdio.h>int main(){ char ch; int a=0, b=0,…… 题解列表 2017年11月27日 0 点赞 0 评论 869 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:这道题最关键的就是那两个long long ,错一般都在这,亲身体验参考代码:#include <stdio.h>int main(){ int n; long lon…… 题解列表 2017年11月27日 0 点赞 0 评论 987 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C++代码) 摘要:解题思路: int d = b*b-4*a*c; 1. d等于0,则两个根相等并等于负的2a分之b, 2. d大于0,则两个根不等,带入公式(-b-sqr…… 题解列表 2017年11月27日 3 点赞 0 评论 1363 浏览 评分:0.0
数列 (C语言代码) 摘要:解题思路:找到规律是这道题目的关键。当k=3时,数列为 1 3 4 9 10 12 13 27 28 30 31 36 37 40 ... …… 题解列表 2017年11月27日 4 点赞 6 评论 2185 浏览 评分:9.9
奖学金 (C语言代码) 摘要:解题思路: 结构体+快速排序参考代码:#include <stdio.h> #include <stdlib.h> struct stu { int num;//学号 int a,…… 题解列表 2017年11月27日 6 点赞 8 评论 2241 浏览 评分:9.8