当前位置:网站首页>华为0基金会——图片整理
华为0基金会——图片整理
2022-07-06 10:19:00 【全栈程序员站长】
大家好,又见面了,我是全栈君。
源程序:
#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;
}
执行结果:
总结:非常easy~0基地称号~
版权声明:本文博客原创文章,博客,未经同意,不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/117396.html原文链接:https://javaforall.cn
边栏推荐
- C语言通过指针交换两个数
- The difference between parallelism and concurrency
- [Android] kotlin code writing standardization document
- The latest financial report release + tmall 618 double top, Nike energy leads the next 50 years
- 虚拟机VirtualBox和Vagrant安装
- Open source and safe "song of ice and fire"
- Why should Li Shufu personally take charge of building mobile phones?
- Scratch epidemic isolation and nucleic acid detection Analog Electronics Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
- Wchars, coding, standards and portability - wchars, encodings, standards and portability
- Is it meaningful for 8-bit MCU to run RTOS?
猜你喜欢
Pytest learning ----- pytest operation mode and pre post packaging of interface automation testing
Jerry is the custom background specified by the currently used dial enable [chapter]
I want to say more about this communication failure
Maixll dock camera usage
C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
当保存参数使用结构体时必备的开发技巧方式
模板于泛型编程之declval
On time and parameter selection of asemi rectifier bridge db207
Four processes of program operation
Comparative examples of C language pointers *p++, * (p++), * ++p, * (++p), (*p) + +, +(*p)
随机推荐
declval(指导函数返回值范例)
The difference between parallelism and concurrency
J'aimerais dire quelques mots de plus sur ce problème de communication...
Pytest learning ----- pytest operation mode and pre post packaging of interface automation testing
Wchars, coding, standards and portability - wchars, encodings, standards and portability
The latest financial report release + tmall 618 double top, Nike energy leads the next 50 years
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
Scratch epidemic isolation and nucleic acid detection Analog Electronics Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Olivetin can safely run shell commands on Web pages (Part 1)
Maixll dock camera usage
Today in history: the mother of Google was born; Two Turing Award pioneers born on the same day
小程序在产业互联网中的作用
UDP协议:因性善而简单,难免碰到“城会玩”
SQL优化问题的简述
STM32+MFRC522完成IC卡号读取、密码修改、数据读写
78 year old professor Huake has been chasing dreams for 40 years, and the domestic database reaches dreams to sprint for IPO
重磅硬核 | 一文聊透对象在 JVM 中的内存布局,以及内存对齐和压缩指针的原理及应用
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
Will openeuler last long