C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:简单运用公式计算即可注意事项:注意类型转换类型优先级从小到规则如下char<unsigned char<short<unsiged short<int<unsigned int<long<u…… 题解列表 2018年01月25日 0 点赞 0 评论 675 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:就按最简单的思路,用for循环从大到小分别求m和n的公因数直到两个公因数相等就为最小公因数;从小到大求公倍数直到两公倍数相等即为最小公倍数。(因为思路简单,所以写出来很繁琐)注意事项:参考代…… 题解列表 2018年01月25日 0 点赞 0 评论 674 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:注意事项:scanf()函数连续输入整数和字符时会读取换行符,输入字符串就行了参考代码:#include <stdio.h> #include <stdlib.h> int main() { …… 题解列表 2018年01月25日 0 点赞 0 评论 831 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int is_yiy(char * a,char * b,int n){int i;for(i=0;…… 题解列表 2018年01月25日 1 点赞 0 评论 960 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define dif 3 int main(void) { int year[100]; in…… 题解列表 2018年01月25日 0 点赞 0 评论 633 浏览 评分:0.0
难在1(C语言代码) 摘要:解题思路:注意“1‘’不是素数,大家应该会了。注意事项:随便把1搞出去就行了。参考代码:#include<stdio.h>int isprime(int );int main(){ int n,m; …… 题解列表 2018年01月26日 0 点赞 0 评论 826 浏览 评分:0.0
蓝桥杯历届试题-翻硬币 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <strings.h>int main(){ char str1[100],str2[100]; int…… 题解列表 2018年01月26日 0 点赞 0 评论 825 浏览 评分:0.0
【计算球体积】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define pi 3.1415int main(){ double r,v; while(scanf("%lf",&r) == 1)…… 题解列表 2018年01月26日 5 点赞 0 评论 1070 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要: 解题思路:菜鸟一枚,在做了二十多道题之后,首次遇到迭代问题我是拒绝的,当我把题目做完后真的打开了我做迭代问题的思路。其实很简单,首先定义一个x0当做 x[n],定义一个x1当做x[n+1],然…… 题解列表 2018年01月26日 0 点赞 0 评论 777 浏览 评分:0.0
IP判断 (利用scanf返回值巧解) 摘要:解题思路:利用scanf读取成功时和失败以及文件结尾时的不同返回值来分支判断注意事项:文件结尾为EOF (-1)scanf返回读取成功的变量的数量 有输入,但全部失败时返回0; 读取文…… 题解列表 2018年01月26日 0 点赞 1 评论 583 浏览 评分:0.0