From 46bec1981bf9bcb70eccb80b4a7f89f5c7dde4e5 Mon Sep 17 00:00:00 2001 From: p3i4gu5vn <1796370411@qq.com> Date: Wed, 16 Feb 2022 20:28:25 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20'=E9=80=89=E6=8B=A9=E6=8E=92=E5=BA=8F'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 选择排序 | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 选择排序 diff --git a/选择排序 b/选择排序 deleted file mode 100644 index 72aaa3a..0000000 --- a/选择排序 +++ /dev/null @@ -1,20 +0,0 @@ -void SelectionSort(int arr[], int length) -{ - int index, temp; - - for (int i = 0; i < length; i++) - { - index = i; - for (int j = i + 1; j < length; j++) - { - if (arr[j] < arr[index]) - index = j; - } - if (index != i) - { - temp = arr[i]; - arr[i] = arr[index]; - arr[index] = temp; - } - } -} \ No newline at end of file