C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int maxCommonDivisor(int a, int b) { int max = a > b ? a : b…… 题解列表 2017年09月14日 0 点赞 0 评论 986 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int isPrime(int num) { int i,flag=0; for(i=2;i<num;i++){ …… 题解列表 2017年09月14日 1 点赞 0 评论 996 浏览 评分:0.0
【出圈】 (C语言代码) 摘要:解题思路:利用指针取找最后留下来的数值,参见语句注释注意事项:参考代码:#include<stdio.h>int main(){ int i,n,m,*p,a[1000],k,l; //定义整…… 题解列表 2017年09月15日 4 点赞 0 评论 1020 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>using name space;main(){ cout<<""}…… 题解列表 2017年09月15日 0 点赞 0 评论 829 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:华氏温度数值由浮点输入赋值给F,输出摄氏温度c,注意输出格式是%.2f,保留两位小数位注意事项:注意输出格式是%.2f参考代码:#include<stdio.h>int main(){ …… 题解列表 2017年09月17日 1 点赞 4 评论 485 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:利用两次双目运算符取求得最大值注意事项:双目运算符要书写正确temp=a>b?a:b; max=temp>c?temp:c;参考代码:#include<stdio.h>int main…… 题解列表 2017年09月17日 3 点赞 0 评论 1517 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:对于三个条件的判断语句,我们采用if{……}else if{……}else 语句 注意事项:最后跳出判断语句输出y参考代码:#include<stdio…… 题解列表 2017年09月18日 3 点赞 2 评论 723 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:利用switch(表达式1){ case 常量表达式1: 语句1;break; case 常量表达式2: 语句2;break; case 常量表达式3: 语句3;break…… 题解列表 2017年09月18日 1 点赞 0 评论 1212 浏览 评分:0.0
字符串比较 (C语言代码)答案错误???? 摘要:解题思路:字符数组存字符串,一个个比较,若有不同(大小)则输出并退出循环,最后全部比完,都到了最后"\0"位置则字符串相同注意事项:参考代码:#include <stdio.h>int main(){…… 题解列表 2017年09月18日 0 点赞 0 评论 820 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#incude <stdio.h>int main (){int a,b;while (1){scanf ("%d%d",&a,&b);printf("%d",a+b);…… 题解列表 2017年09月18日 0 点赞 0 评论 784 浏览 评分:0.0