三个数升降序排序
3个数升序排序
if (a > b) {double t = a; a = b; b = t;}
if (a > c) {double t = a; a = c; c = t;}
if (b > c) {double t = b; b = c; c = t;}
3个数降序排序
if (a < b) {double t = a; a = b; b = t;}
if (a < c) {double t = a; a = c; c = t;}
if (b < c) {double t = b; b = c; c = t;}
2023-05-01 08:38:17 星期一
本文来自博客园,作者:逆袭怪,转载请注明原文链接:https://www.cnblogs.com/fghjktgbijn/p/17366129.html