C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int i; int a,b,c,d,g,e; scanf("%5d",&i); a=i/10000; b=…… 题解列表 2017年11月11日 0 点赞 0 评论 736 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:解题思路:1.弄懂题目就是求1到30的每个数的阶层和。所以for循环就可以解决;2.然后设立一个中间变量t用来记录每个数的阶层,然后加到sum中。注意事项:注意科学计算法的输出格式%.2e,输出不带换…… 题解列表 2017年11月11日 3 点赞 1 评论 752 浏览 评分:0.0
C二级辅导-统计字符 (C语言描述——用函数求解) 摘要:解题思路:弄懂题目意思后,我们可以考虑用函数取求解;注意事项:格局格式要求,判断时一定要注意顺序先计算字母个数,再计算空格个数,接着是数字个数,最后是其他字母的计数!输出格式可以没输出一个数就利用换行…… 题解列表 2017年11月11日 1 点赞 0 评论 1589 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:#include<stdio.h> int main() { printf("2.74e+32\n"); return 0;}…… 题解列表 2017年11月11日 1 点赞 0 评论 2089 浏览 评分:0.0
IP判断 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <cstring>int main(){ char c[105],t[105]; while(scanf(…… 题解列表 2017年11月11日 0 点赞 0 评论 986 浏览 评分:0.0
母牛的故事 (java语言代码) 摘要:解题思路:没看到有java的,来冒个泡(其实都一样吧)三个int量分别代表成年,一岁,和两岁的母牛用一个循环表示时间的增长每加一年;有所有的未成年牛加一岁;成年牛每只生下一只小牛;就酱,最后输出和注意…… 题解列表 2017年11月11日 5 点赞 1 评论 983 浏览 评分:4.7
C语言程序设计教程(第三版)课后习题10.7 指针(C语言代码) 摘要:#include <stdio.h> int main() { int n, m; scanf("%d", &n); char s[n+1]; scan…… 题解列表 2017年11月11日 1 点赞 0 评论 946 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;class A{ int x, y; public A(int a) { …… 题解列表 2017年11月12日 0 点赞 0 评论 790 浏览 评分:0.0
小九九 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; for(i=1;i<=9;i++)//这里表示运算的次数,i=2表示下面一个for…… 题解列表 2017年11月12日 0 点赞 0 评论 752 浏览 评分:0.0
P1044 (C++代码) 摘要:解题思路:动态规划注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[100][100]; …… 题解列表 2017年11月12日 0 点赞 0 评论 1087 浏览 评分:0.0