From c26519928540227a0d7d6ec8140aaeff6308c05c Mon Sep 17 00:00:00 2001 From: patvgnw5f <483018233@qq.com> Date: Thu, 17 Feb 2022 17:06:40 +0800 Subject: [PATCH] =?UTF-8?q?Add=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 --- 选择排序 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 选择排序 diff --git a/选择排序 b/选择排序 new file mode 100644 index 0000000..cdf301d --- /dev/null +++ b/选择排序 @@ -0,0 +1,25 @@ + +#include +int main(void) +{ + int a[1001]; + int n,i,j,t; + scanf("%d",&n); + for(i=0;ia[j]) + { + t=a[i]; + a[i]=a[j]; + a[j]=t; + } + for(j=0;j