优质题解 IP判断 (C语言代码)思路清晰,详细注释,欢迎参考! 摘要:思路很清晰,见下面代码注释!遇到的是atoi函数的返回值问题,atoi()函数用来将字符串转换成整数(int),其原型为:int atoi (const char * str);函数说明:atoi()…… 题解列表 2018年04月05日 5 点赞 7 评论 4834 浏览 评分:6.9
C语言训练-亲密数 (Java代码) 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { int sum1 = 0; int B = …… 题解列表 2018年04月05日 1 点赞 0 评论 1698 浏览 评分:9.9
Tom数 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2018年04月05日 1 点赞 0 评论 1486 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,i=0,a[10]; while(scanf("%d",&x) && x!=0 && i…… 题解列表 2018年04月05日 0 点赞 0 评论 784 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ if(b) return max(b,a%b); return a…… 题解列表 2018年04月04日 0 点赞 0 评论 894 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:void fun1(float a,float b,float c){ float x1,x2; float des=b*b-4*a*c; x1=(-b+sqrt(des…… 题解列表 2018年04月04日 0 点赞 0 评论 1390 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:一定要记住,在float,或者double时,用 / 需要加.0 即:float c= 5/9; wrong; &n 题解列表 2018年04月04日 0 点赞 0 评论 985 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>eight(int n){ if(n>=8){ eight(n/8);//先执行循环体,在执行printf,但是n并…… 题解列表 2018年04月04日 0 点赞 0 评论 1163 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int isprime(int x){ if(x==1)//别忘了1不是素数 ret…… 题解列表 2018年04月04日 0 点赞 0 评论 1398 浏览 评分:0.0
采药 (C语言代码) 摘要:解题思路:这道题提交了好多次都失败了,刚开始想当然地用贪心算法,后来发现错了又用回溯法,但是运行超时,最后采用动态规划顺利解决。这题的解题思路及方法其他题解已经讲得很清楚了。所以此文章仅仅是为了记下自…… 题解列表 2018年04月04日 0 点赞 0 评论 1552 浏览 评分:0.0