C语言程序设计教程(第三版)课后习题9.10 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[100]; gets(str); int n= str…… 题解列表 2017年12月12日 0 点赞 0 评论 1175 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int arr[3]; for(int i=0; i<3; i++) { scanf("%d",&arr[i]…… 题解列表 2017年12月12日 0 点赞 0 评论 702 浏览 评分:0.0
我美吗! 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n,m,sum; while(scanf("%d",&n)!=EOF) { …… 题解列表 2017年12月12日 0 点赞 0 评论 706 浏览 评分:0.0
字符串的输入输出处理 (C++代码) 摘要:解题思路:虽然一遍就过,但还是觉得这个题目有点叙述不清楚,反正设置一个计数器cnt,计算输入字符串的数量,超过N的便采取特殊处理,还有,输入n之后记得getchar(),其他的没什么了。注意事项:参考…… 题解列表 2017年12月12日 0 点赞 0 评论 862 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void test1(int shuzu[],int len);void test2(int shuzu[],int len);voi…… 题解列表 2017年12月12日 0 点赞 0 评论 867 浏览 评分:0.0
DNA (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int n;scanf("%d",&n); while(n--){ int a,b; scanf("%d%d…… 题解列表 2017年12月12日 1 点赞 0 评论 828 浏览 评分:0.0
班级人数 暴力(C语言代码) 摘要:解题思路:利用数学参考代码:#include <stdio.h> int main() { double p, q; while(scanf("%lf %lf", &p, &q) !=…… 题解列表 2017年12月12日 0 点赞 0 评论 1233 浏览 评分:0.0
WU-C二级辅导-温度转换 (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { double C,F; scanf("%lf",&F); C=5.0/9.0*(F-32); printf(…… 题解列表 2017年12月12日 3 点赞 0 评论 1374 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.2 (C语言代码) 摘要:解题思路:宏的定义注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define D(a,b) a%bint main(){ int a,b,k; …… 题解列表 2017年12月12日 0 点赞 0 评论 702 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.1 (C语言代码) 摘要:解题思路:宏的定义注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define E(a,b) t=a;a=b;b=t;int main(){ vo…… 题解列表 2017年12月12日 0 点赞 0 评论 888 浏览 评分:0.0