C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int i=0; char s[101]; scanf…… 题解列表 2018年08月20日 0 点赞 0 评论 1048 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:主要是取模的问题注意事项:取模 % 求用它左边的值除以右边的数后的余数 5%3 2 (%运算符两侧的操作数必须为整数) 参考代码:#include<stdio.…… 题解列表 2018年08月20日 1 点赞 1 评论 510 浏览 评分:0.0
蓝桥杯算法训练VIP-薪水计算 (C语言代码)我认为比较简洁的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int t; float s,award=0; scanf("%…… 题解列表 2018年08月20日 0 点赞 0 评论 794 浏览 评分:0.0
小九九 (C语言代码) 摘要:解题思路:注意事项:占2个位置——%2d 靠左对齐——%-2d参考代码:#include<stdio.h>int main(){ for(int i=1;i<=9;i++){ …… 题解列表 2018年08月20日 0 点赞 0 评论 1160 浏览 评分:0.0
【求[X,Y]内被除3余1并且被除5余3的整数的和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,count=0; scanf("%d %d",&a,&b); for(int …… 题解列表 2018年08月20日 0 点赞 0 评论 976 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:首先应该是找出年份见母牛数量之间的关系 成熟 1年 2年 3年 总数1年 1 12年 1 1 2 3年 1 …… 题解列表 2018年08月20日 0 点赞 0 评论 1816 浏览 评分:0.0
【排队买票】 (C语言代码) 摘要:解题思路:我认为最值得一提的是我收获了一个方法,来判断队列是否满足要求1元加12元减1若小于0则不符合要求,排序失败int panduan(int *A,int M,int *sum){ …… 题解列表 2018年08月20日 0 点赞 0 评论 1040 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:1.变量的数据类型:根据题意可判断为实型。2.除法运算符:两个整型量相除时,其商也为整型量,若不能整除,将会产生极大的误差,所以因尽量避免两个整数直接相处。3.小数点保留:题目中的…… 题解列表 2018年08月20日 0 点赞 0 评论 716 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码)(用自定义函数求最大公因数) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,i; int gys(int m,int n); scanf("%d%d",&a,&b); i…… 题解列表 2018年08月20日 0 点赞 0 评论 1042 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",a+b); return…… 题解列表 2018年08月20日 0 点赞 0 评论 615 浏览 评分:0.0