当前位置:网站首页>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
边栏推荐
- 2019 Alibaba cluster dataset Usage Summary
- 【剑指 Offer】 60. n个骰子的点数
- 2022暑期项目实训(二)
- A method of sequentially loading Unity Resources
- CSRF vulnerability analysis
- Wchars, coding, standards and portability - wchars, encodings, standards and portability
- CSRF漏洞分析
- 關於這次通信故障,我想多說幾句…
- Maixll dock camera usage
- std::true_type和std::false_type
猜你喜欢

2019阿里集群数据集使用总结

Declval of template in generic programming

模板于泛型编程之declval
![Jerry's access to additional information on the dial [article]](/img/a1/28b2a5f7c16cbcde1625a796f0d188.jpg)
Jerry's access to additional information on the dial [article]

Comparative examples of C language pointers *p++, * (p++), * ++p, * (++p), (*p) + +, +(*p)

Compilation Principle -- C language implementation of prediction table

队列的实现

TOP命令详解

J'aimerais dire quelques mots de plus sur ce problème de communication...

UDP protocol: simple because of good nature, it is inevitable to encounter "city can play"
随机推荐
Jerry's access to additional information on the dial [article]
Excellent open source fonts for programmers
Jerry's setting currently uses the dial. Switch the dial through this function [chapter]
Penetration test information collection - CDN bypass
Echart simple component packaging
图片缩放中心
具体说明 Flume介绍、安装和配置
Markdown syntax for document editing (typera)
關於這次通信故障,我想多說幾句…
Declval (example of return value of guidance function)
celery最佳实践
Coco2017 dataset usage (brief introduction)
Jerry's watch reads the file through the file name [chapter]
Prophet模型的简介以及案例分析
Declval of template in generic programming
Distill knowledge from the interaction model! China University of science and Technology & meituan proposed virt, which combines the efficiency of the two tower model and the performance of the intera
A method of sequentially loading Unity Resources
30 分钟看懂 PCA 主成分分析
Maixll dock camera usage
【剑指 Offer】 60. n个骰子的点数