输出九九乘法表 (C语言代码) 摘要:解题思路:两重循环没什么难度吧,主要就是制表要跟它完全一样太恶心。。。要很仔细地观察,我改了3次才改的完全一样参考代码:#include<stdio.h>int main(){ prin…… 题解列表 2017年07月25日 0 点赞 1 评论 1915 浏览 评分:8.7
指针做法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>move(int *a,int *b,int m,int n);int main(){ int i,a[1024],b[1024]…… 题解列表 2017年07月25日 3 点赞 0 评论 1206 浏览 评分:0.0
数字整除 (C语言代码) 摘要:#include<stdio.h> #include<string.h> int chartoint(char s[]) { char *p,*q; char temp;…… 题解列表 2017年07月25日 0 点赞 0 评论 1139 浏览 评分:0.0
不需要数组和指针的做法!!! 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char c; while((c=getchar())!='\n'&&c!=-1)…… 题解列表 2017年07月25日 5 点赞 6 评论 1351 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3],i,j,t; for(i=0;i<3;i++) scanf("%d"…… 题解列表 2017年07月25日 0 点赞 0 评论 901 浏览 评分:0.0
亲和的解法 摘要:解题思路:注意事项:刚开始我做的代码是一组一组的吸收数据并得出结果,然后想到了利用数组的办法来收集结果并统一输出参考代码:#include <stdio.h>#include <stdlib.h>in…… 题解列表 2017年07月25日 1 点赞 0 评论 1465 浏览 评分:0.0
A+B for Input-Output Practice (IV) (C语言代码) 摘要:#include <stdio.h>int main(){ int t=1,sum=0,i; while(t) { scanf("%d",&t); int a[t]; for(i=0;i<t;i…… 题解列表 2017年07月25日 0 点赞 0 评论 974 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(a==0&&b=…… 题解列表 2017年07月25日 0 点赞 0 评论 994 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define da(a,b,c) d=a>b?(a>c?a:c):(b>c?b:c);float zu…… 题解列表 2017年07月25日 0 点赞 0 评论 819 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:定义一个结构体变量(年、月、日),以平年为准,通过数组给每个月初始化天数,条件判断是否为闰年,如果是闰年,那么2月份为29天,通过遍历,计算出是第几天。如果是平年,则2月份为28天,计算出是…… 题解列表 2017年07月25日 5 点赞 0 评论 2421 浏览 评分:8.0