当前位置:网站首页>27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
2022-07-03 16:51:00 【我不是萧海哇~~~~】
int sortnum(int *a,int *b ,int *c)
{
int minnum=min(min(*a,*b),*c);
int maxnum=max(max(*a,*b),*c);
int midnum=*a+*b+*c-minnum-maxnum;
printf("%d %d %d\n",maxnum,midnum,minnum);
}
边栏推荐
- Yu Wenwen, Hu Xia and other stars take you to play with the party. Pipi app ignites your summer
- Shentong express expects an annual loss of nearly 1billion
- 浅谈拉格朗日插值及其应用
- [2. Basics of Delphi grammar] 2 Object Pascal data type
- Simulink oscilloscope data is imported into Matlab and drawn
- PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
- Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
- NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri
- CC2530 common registers for serial communication
- Zebras are recognized as dogs, and Stanford found the reason why AI made mistakes
猜你喜欢

(补)双指针专题

跟我学企业级flutter项目:简化框架demo参考

What material is sa537cl2? Analysis of mechanical properties of American standard container plate

Learn from me about the enterprise flutter project: simplified framework demo reference

Why is WPA3 security of enterprise business so important?

Bcvp developer community 2022 exclusive peripheral first bullet

Le zèbre a été identifié comme un chien, et la cause de l'erreur d'AI a été trouvée par Stanford

Visual SLAM algorithms: a survey from 2010 to 2016

Processing strategy of message queue message loss and repeated message sending

word 退格键删除不了选中文本,只能按delete
随机推荐
Thread pool executes scheduled tasks
UCORE overview
On Lagrange interpolation and its application
Record windows10 installation tensorflow-gpu2.4.0
Le zèbre a été identifié comme un chien, et la cause de l'erreur d'AI a été trouvée par Stanford
LeetCode 1657. Determine whether the two strings are close
What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels
关于视觉SLAM的最先进技术的调查-A survey of state-of-the-art on visual SLAM
IL Runtime
PHP production website active push (website)
Mysql 将逗号隔开的属性字段数据由列转行
[JDBC] API parsing
What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
AcWing 第58 场周赛
Threejs Part 2: vertex concept, geometry structure
arduino-esp32:LVGL项目(一)整体框架
LeetCode 1656. Design ordered flow
QT串口ui设计和解决显示中文乱码
13mnnimo5-4 German standard steel plate 13MnNiMo54 boiler steel 13MnNiMo54 chemical properties
Idea configuration plug-in