以下是使用 C 语言实现上述功能的代码: ```c #include <stdio.h> // 输入函数 void input(int *a, int *b, int *c) { scanf("%d%d%d", a, b, c); } // 排序函数 void sort(int *a, int *b, int *c) { int temp; if (*a < *b) { temp = *a; *a = *b; *b = temp; } if (*a < *c) { temp = *a; *a = *c; *c = temp; } if (*b < *c) { temp = *b; *b = *c; *c = temp; } } int main() { int a, b, c; input(&a, &b, &c); sort(&a, &b, &c); printf("%3d%3d%3d\n", a, b, c); return 0; } ``` [2024-10-25 00:53:10 | AI写代码神器 | 259点数解答]