当前位置:网站首页>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);
}
边栏推荐
- 于文文、胡夏等明星带你玩转派对 皮皮APP点燃你的夏日
- Kotlin学习快速入门(7)——扩展的妙用
- 浅谈拉格朗日插值及其应用
- Fast Ethernet and Gigabit Ethernet: what's the difference?
- 8 cool visual charts to quickly write the visual analysis report that the boss likes to see
- (补)双指针专题
- [2. Basics of Delphi grammar] 1 Identifiers and reserved words
- 爱可可AI前沿推介(7.3)
- CC2530 common registers for crystal oscillator settings
- 【LeetCode】94. Middle order traversal of binary tree
猜你喜欢

Mysql 将逗号隔开的属性字段数据由列转行

Web crawler knowledge day03

关于视觉SLAM的最先进技术的调查-A survey of state-of-the-art on visual SLAM

What kind of material is 14Cr1MoR? Analysis of chemical composition and mechanical properties of 14Cr1MoR

Aike AI frontier promotion (7.3)

PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

MySQL single table field duplicate data takes the latest SQL statement
![[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe](/img/9d/6118b699c0d90810638f9b08d4f80a.jpg)
[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe

Cocos Creator 2. X automatic packaging (build + compile)

CC2530 common registers for serial communication
随机推荐
Shentong express expects an annual loss of nearly 1billion
[combinatorics] recursive equation (example 1 of recursive equation | list recursive equation)
美团一面:为什么线程崩溃崩溃不会导致 JVM 崩溃
斑馬識別成狗,AI犯錯的原因被斯坦福找到了
跟我学企业级flutter项目:简化框架demo参考
Meituan side: why does thread crash not cause JVM crash
Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error
[2. Basics of Delphi grammar] 1 Identifiers and reserved words
Processing strategy of message queue message loss and repeated message sending
Top k questions of interview
Zebras are recognized as dogs, and Stanford found the reason why AI made mistakes
Leetcode binary search tree
PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
UCORE overview
CC2530 common registers for port initialization
Bcvp developer community 2022 exclusive peripheral first bullet
[combinatorics] non descending path problem (number of non descending paths with constraints)
Learn from me about the enterprise flutter project: simplified framework demo reference
utfwry. Dat PHP, about ThinkPHP's method of IP location using utfwry address Library
14 topics for performance interviews between superiors and subordinates (4)