题目 1010: [编程入门]利润计算 摘要:这道题我使用了“switch”判断语句来解决不同金额条件下的求值问题【题目描述】:企业发放的奖金根据利润提成。利润低于或等于100000元的,奖金可提10%;利润高于100000元,低于200000元…… 文章列表 2022年10月13日 0 点赞 5 评论 406 浏览 评分:9.9
啊哈c_103_while_1 摘要:打印结果如下: 第一行为你输入的值。  #include int ma…… 文章列表 2022年10月15日 0 点赞 0 评论 253 浏览 评分:9.9
啊哈c_103_while_2 摘要:打印结果: 第一行 是你输入的数字。  #include int m…… 文章列表 2022年10月15日 0 点赞 0 评论 226 浏览 评分:9.9
垂直直方图 摘要:题目描述输入4行全部由大写字母组成的文本,输出一个垂直直方图,给出每个字符出现的次数。注意:只用输出字符的出现次数,不用输出空白字符,数字或者标点符号的输出次数。为什么我这个代码提交之后显示答案错误?…… 文章列表 2022年10月15日 0 点赞 0 评论 284 浏览 评分:9.9
找出>100且个十位相加%10==百位的素数 摘要:#include<stdio.h>int main(){ int m,n,i,a,b,c,d; scanf("%d%d",&m,&n); for(i=m;i<=n;i++){ …… 文章列表 2022年10月20日 0 点赞 0 评论 173 浏览 评分:9.9
1085: A+B for Input-Output Practice (I) 以输入作为条件 摘要:#include<stdio.h>int main(){ int a,b,c; while(scanf("%d%d",&a,&b))//用输入做条件 { c=a+b; printf("%d",c)…… 文章列表 2022年10月22日 0 点赞 0 评论 201 浏览 评分:9.9
Input-Output Practice小结 摘要:@1限定个数的加法#include<stdio.h>int main(){ int n; scanf("%d",&n); //优势:有效求解限定个数的加法,效率高 int a[100],b[100…… 文章列表 2022年10月23日 0 点赞 0 评论 161 浏览 评分:9.9
A+B for Input-Output Practice 小结2 摘要:加法输入可以分为有结束标志型和无结束标志型也可分为 确定长度型和无确定长度型 也有特殊 既无结束标志也无确定长度#include<stdio.h>int main(){…… 文章列表 2022年10月24日 0 点赞 0 评论 243 浏览 评分:9.9
sort()函数用法(较常用) 摘要:(一)sort()是C++一种排序方法之一,并且执行效率较高;(二)sort()用法*头文件#include<algorithm>(1)sort(start,end);int a[4]={1,2,3,…… 文章列表 2022年10月27日 0 点赞 0 评论 307 浏览 评分:9.9
<algorithm>常用函数 摘要:(1)max(a,b) //最大值(2) min(a,b) //最小值(3) abs() //绝对值(整形)(4) fabs() //绝对值,(可以用浮点)…… 文章列表 2022年10月27日 0 点赞 1 评论 159 浏览 评分:9.9