浮点型数据类型存储空间大小 摘要:#include <stdio.h> int main() { float a; double b; printf("%d %d",sizeof(a),sizeof(b)); re…… 文章列表 2022年10月16日 0 点赞 1 评论 190 浏览 评分:9.5
找出>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 评论 138 浏览 评分:9.9
C语言实现发奖学金 摘要:```c #include struct Student { int id; int Chinese; int Math; int English; …… 文章列表 2022年10月21日 0 点赞 0 评论 165 浏览 评分:0.0
尼科彻斯定理——Java语言 摘要:## 尼科彻斯定理 对于power运算需要自己写一个方法,因为Math类所提供的pow方法会有误差,这一方法的误差在C语言的pow方法中同样存在!因为本题只设计立方运算,所以在power方法中其实可…… 文章列表 2022年10月21日 0 点赞 0 评论 362 浏览 评分:5.3
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 评论 170 浏览 评分: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 评论 126 浏览 评分:9.9
最大公约数和最小公倍数 摘要:int divisor(int x,int y){ int r; r=x%y; while(r!=0) {x=y;y=r;r=x%y;} return(y);}int m…… 文章列表 2022年10月24日 0 点赞 0 评论 146 浏览 评分:6.0
A+B for Input-Output Practice 小结2 摘要:加法输入可以分为有结束标志型和无结束标志型也可分为 确定长度型和无确定长度型 也有特殊 既无结束标志也无确定长度#include<stdio.h>int main(){…… 文章列表 2022年10月24日 0 点赞 0 评论 212 浏览 评分:9.9
sort()函数用法(较常用) 摘要:(一)sort()是C++一种排序方法之一,并且执行效率较高;(二)sort()用法*头文件#include<algorithm>(1)sort(start,end);int a[4]={1,2,3,…… 文章列表 2022年10月27日 0 点赞 0 评论 271 浏览 评分:9.9
<algorithm>常用函数 摘要:(1)max(a,b) //最大值(2) min(a,b) //最小值(3) abs() //绝对值(整形)(4) fabs() //绝对值,(可以用浮点)…… 文章列表 2022年10月27日 0 点赞 1 评论 116 浏览 评分:9.9