C++ 程序:将三个整数从小到大排序输出 日期: 2028-02-25 04:04:14 标签: 常规 #include #include using namespace std; int main() { int a[3]; cin >> a[0] >> a[1] >> a[2]; sort(a, a + 3); // sort 默认升序 cout << a[0] << '->' << a[1] << '->' << a[2]; return 0; } 原文地址: https://www.cveoy.top/t/topic/oW8Z 著作权归作者所有。请勿转载和采集! 免费AI点我,无需注册和登录