A+B for Input-Output Practice (IV) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,n,count=0; scanf("%d ",&n); while(~sc…… 题解列表 2018年12月30日 0 点赞 0 评论 655 浏览 评分:0.0
getchar( )和字符数组求个数 (C语言代码) 摘要:解题思路:#include <type.h>isalpha()是否是字母;isdigit()是否是数字注意事项:参考代码:#include <stdio.h> #include <ctype.h> …… 题解列表 2018年12月30日 1 点赞 0 评论 1169 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:一个接一个比较注意事项:不要弄混比较量参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c…… 题解列表 2018年12月30日 0 点赞 0 评论 611 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> //Eratosthenes筛选法求素数 int main() { …… 题解列表 2018年12月30日 0 点赞 0 评论 1059 浏览 评分:0.0
题解1066 Algorithm算法 两个函数轻松解决 (C语言代码) 摘要:解题思路:根据题目意思,写两个function即可!在C语言math.h库文件中本来就有x的n次方的函数pow()。因此在mypow函数中只需要将其返回即可。注意事项: x - x2/2! + x3…… 题解列表 2018年12月30日 1 点赞 0 评论 991 浏览 评分:0.0
很简单的二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:sqrt(x+1)=========pow(x+1,0.5)参考代码:#include <stdio.h> #include <math.h> double f(double …… 题解列表 2018年12月30日 1 点赞 0 评论 1099 浏览 评分:0.0
Huffuman树 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.ArrayList; import java.util.Collections; import java.util.Scanner;…… 题解列表 2018年12月31日 0 点赞 0 评论 774 浏览 评分:0.0
回形取数 (Java代码)标志数组 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class T1465 { public static void main(String[] …… 题解列表 2018年12月31日 1 点赞 0 评论 1166 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:其实问题不想要的那么复杂,最简单的就是最好的,符合题目要求就是最好的,能编译成功就是最好的 注意事项:简单的问题不要复杂化了参考代码://写一函数,将两个字符串连接#include<stdi…… 题解列表 2018年12月31日 0 点赞 0 评论 591 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[10],b,n; for(i=0;i<9;i++) scanf("%d",&a[i]); …… 题解列表 2018年12月31日 0 点赞 0 评论 757 浏览 评分:0.0