power 力量函数——舍罕王的失算 (C语言代码) 摘要:解题思路:1+2+4+8+16+32+64+128+256+512+1024+.........2^64注意事项:#include <math.h>#include <stdio.h>参考代码:#in…… 题解列表 2019年01月30日 1 点赞 0 评论 660 浏览 评分:0.0
C二级辅导-同因查找 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*求出10至1000之内能同时被2、3、7整除的数,并输出。每行一个。*/#include<stdio.h>int main(){ int i, j; fo…… 题解列表 2019年01月30日 0 点赞 0 评论 613 浏览 评分:0.0
C二级辅导-计负均正 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*从键盘输入任意20个整型数,统计其中的负数个数并求所有正数的平均值。保留两位小数*/#include<stdio.h>int main(){ int i, n …… 题解列表 2019年01月30日 0 点赞 0 评论 902 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:a*b = 最大公约数*最大公倍数注意事项:前面有一篇帖子是跟这道题一模一样的参考代码:/*输入两个正整数m和n,求其最大公约数和最小公倍数。*/#include<stdio.h>int…… 题解列表 2019年01月30日 0 点赞 0 评论 1248 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:解题思路:注意事项: 前面有一篇类似的帖子参考代码:/*输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。*/#include<stdio.h>int m…… 题解列表 2019年01月30日 0 点赞 0 评论 913 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:解题思路:注意事项: 科学计数法的输出格式为%e参考代码:#include<stdio.h>int main(){ int i; double j=1,sum=0; for(i=1…… 题解列表 2019年01月30日 0 点赞 0 评论 551 浏览 评分:0.0
数据结构-字符串连接 (C语言代码) 摘要:解题思路:注意事项:字符串不超过100,则数组长度应该定为101(或者更大),因为要给'\0'留一个位置。参考代码:#include<cstdio>int main(){ char s…… 题解列表 2019年01月30日 0 点赞 1 评论 884 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:/*输入10个数,找出其中绝对值最小的数,将它和最后一个数交换,然后输出这10个数。*/#include<stdio.h>#include<math.h>int main…… 题解列表 2019年01月30日 0 点赞 0 评论 626 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.8 (C语言代码) 摘要:#include<stdio.h> int main(void) { double i; scanf("%lf", &i); if (i > 60…… 题解列表 2019年01月30日 0 点赞 0 评论 663 浏览 评分:0.0
sizeof的大作用 (C语言代码) 摘要:解题思路:使用int定义变量,sizeof运算符运算。注意事项:sizeof返回的都是int 型,int可以连续定义变量节省时间。参考代码:#include<stdio.h>int main(){ …… 题解列表 2019年01月30日 0 点赞 0 评论 762 浏览 评分:0.0