当前位置:网站首页>Huawei 0 foundation - image sorting
Huawei 0 foundation - image sorting
2022-07-06 18:25:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
Source program :
#include<iostream>
#include<string>
using namespace std;
//const int max=1024;
int main()
{
char s[1024];
char temp;
gets(s);
int len;
len=strlen(s);
for(int i=0;i<len;i++)
{
for(int j=i+1;j<len;j++)
{
if(s[i]>s[j])
{
temp=s[i];s[i]=s[j];s[j]=temp;
}
}
}
puts(s);
return 0;
}Execution results :
summary : very easy~0 Base title ~
Copyright notice : This article is an original blog article , Blog , Without consent , Shall not be reproduced .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/117396.html Link to the original text :https://javaforall.cn
边栏推荐
- Windows connects redis installed on Linux
- 简单易用的PDF转SVG程序
- FMT open source self driving instrument | FMT middleware: a high real-time distributed log module Mlog
- win10系统下插入U盘有声音提示却不显示盘符
- 第三季百度网盘AI大赛盛夏来袭,寻找热爱AI的你!
- bonecp使用数据源
- [sword finger offer] 60 Points of N dice
- [.Net core] solution to error reporting due to too long request length
- Why does wechat use SQLite to save chat records?
- Interesting - questions about undefined
猜你喜欢

面向程序员的精品开源字体

Blue Bridge Cup real question: one question with clear code, master three codes

Excellent open source fonts for programmers

Alibaba cloud international ECS cannot log in to the pagoda panel console

Penetration test information collection - CDN bypass

STM32按键状态机2——状态简化与增加长按功能

虚拟机VirtualBox和Vagrant安装

UDP协议:因性善而简单,难免碰到“城会玩”

287. 寻找重复数

【中山大学】考研初试复试资料分享
随机推荐
Jerry's watch reading setting status [chapter]
Jerry's watch deletes the existing dial file [chapter]
STM32按键状态机2——状态简化与增加长按功能
2022 Summer Project Training (II)
MS-TCT:Inria&SBU提出用于动作检测的多尺度时间Transformer,效果SOTA!已开源!(CVPR2022)...
SAP Fiori 应用索引大全工具和 SAP Fiori Tools 的使用介绍
首先看K一个难看的数字
Numerical analysis: least squares and ridge regression (pytoch Implementation)
C language college laboratory reservation registration system
SQL优化问题的简述
简单易用的PDF转SVG程序
celery最佳实践
Codeforces Round #803 (Div. 2)
POJ 2208 已知边四面体六个长度,计算体积
解读云原生技术
epoll()无论涉及wait队列分析
第三季百度网盘AI大赛盛夏来袭,寻找热爱AI的你!
Open source and safe "song of ice and fire"
TOP命令详解
Easy to use PDF to SVG program