[编程入门]三个数字的排序(C++)冒泡排序思想 摘要:解题思路:运用冒泡排序思想对三个数字进行排序;把a,b,c看作一组有序序列;fun函数对两个数进行排序;使用三次fun函数便可完成三个数的排序注意事项:swap函数是C++自带的函数!fun函数的形参…… 题解列表 2022年03月25日 0 点赞 2 评论 1051 浏览 评分:9.9
1043 三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d", &a, &b,&c); if(a>b) …… 题解列表 2022年03月23日 0 点赞 0 评论 280 浏览 评分:9.9
编程我们是新手,对于重复的代码,建议复制粘贴再修改 摘要:解题思路:运用if注意事项:if后是否加大括号,注意好上下级关系参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",…… 题解列表 2022年03月14日 0 点赞 0 评论 351 浏览 评分:7.0
C语言,不用库函数,标注较为清晰,冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//冒泡排序方法int main(){ int i,a[10]; for(i=0;i<3;i++)//现在数组里输入三个数 { sca…… 题解列表 2022年03月11日 0 点赞 0 评论 580 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int t; for(int i=0;i<3;i++){ s…… 题解列表 2022年03月09日 0 点赞 0 评论 128 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路:因为数字很少(3个),所以写了一个冒泡排序,接收数组的指针和数组长度,给数组排序,之后正常打印数组即可。注意事项:冒泡排序的原理是在每一轮循环中,对数组的成员两两比较,这样能保证每一轮循环都…… 题解列表 2022年03月05日 0 点赞 0 评论 256 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&b<c)printf…… 题解列表 2022年03月04日 0 点赞 0 评论 201 浏览 评分:0.0
冒泡排序哦 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void b_sort(int a[]){ int i,j,t; for(i=0;i<2;i++){ for(j=0…… 题解列表 2022年03月02日 0 点赞 0 评论 323 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:解题思路:冒泡排序注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ int temp=0,flag=0,i,j; int …… 题解列表 2022年02月28日 0 点赞 0 评论 141 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x,y,z,max,min,mid; scanf("%d %d %d",&x,&y,&z); min=…… 题解列表 2022年02月13日 0 点赞 0 评论 269 浏览 评分:9.9