A+B for Input-Output Practice (I) (C语言代码) 摘要:#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b)==2) printf("%d\n",a+b); …… 题解列表 2017年11月28日 1 点赞 0 评论 1360 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:定义一个长度为n+1的数组,全赋值为1;将所有下角标为2的倍数的赋值为0;将所有下角标为3的倍数的赋值为0,依此类推;输出数值为1的单元的下角标;注意事项:参考代码:#include<std…… 题解列表 2017年11月28日 0 点赞 0 评论 1613 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路: 多用用ctype里面的函数就行了注意事项: 要现用isgraph函数,再用isgraph函数,不然会全部归类为isgraph函数的数上参考代码:#include <stdio.…… 题解列表 2017年11月28日 3 点赞 0 评论 3487 浏览 评分: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 评论 2281 浏览 评分: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 评论 1855 浏览 评分: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 评论 2205 浏览 评分:0.0
C语言训练-阶乘和数* (也是笨办法,但是思路好理解),新手写的写的不好请见谅 摘要:#include<stdio.h> int fun(int); int main() { int i; for(i=1; i<=100000; i++) //循环判断 …… 题解列表 2017年11月27日 8 点赞 3 评论 1781 浏览 评分:8.7
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:这道题的错误点在于输出的顺序,要按照题目要求先后输出。参考代码:#include <stdio.h>int main(){ char ch; int a=0, b=0,…… 题解列表 2017年11月27日 0 点赞 0 评论 1419 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:这道题最关键的就是那两个long long ,错一般都在这,亲身体验参考代码:#include <stdio.h>int main(){ int n; long lon…… 题解列表 2017年11月27日 0 点赞 0 评论 1539 浏览 评分:0.0
数列 (C语言代码) 摘要:解题思路:找到规律是这道题目的关键。当k=3时,数列为 1 3 4 9 10 12 13 27 28 30 31 36 37 40 ... …… 题解列表 2017年11月27日 4 点赞 6 评论 2497 浏览 评分:9.9