[quote=引用 5 楼 qq_1457346882 的回复:] [quote=引用 4 楼 棉猴 的回复:] void sort(int* a, int* b) { int t; if (*a < *b) { t = *a; *a = *b; *b = t; } }
void sort(int* a, int* b) { int t; if (*a < *b) { t = *a; *a = *b; *b = t; } }
[quote=引用 4 楼 棉猴 的回复:] void sort(int* a, int* b) { int t; if (*a < *b) { t = *a; *a = *b; *b = t; } }
if (*a > *b)
sort(&a[0], &a[1]);
if (*a < *b)
69,373
社区成员
243,080
社区内容
加载中
试试用AI创作助手写篇文章吧