📅  最后修改于: 2022-03-11 15:04:35.490000             🧑  作者: Mango
int var;
for (int i = 0; i < size; ++i)
{
for (int j = i + 1; j < size; ++j)
{
if (array[i] > array[j])
{
var = array[i];
array[i] = array[j];
array[j] = var;
}
}
}