From 3d60548efe205187e738623ad67ee42e58b98263 Mon Sep 17 00:00:00 2001 From: 1AoB <2453468739@qq.com> Date: Mon, 29 Apr 2024 00:35:18 +0800 Subject: [PATCH] c++ --- exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md b/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md index 762f367..035542b 100644 --- a/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md +++ b/exampleSite/content/post/2024-04-20七大排序算法/index.zh-cn.md @@ -391,7 +391,7 @@ void sort_3(vector &arr) arr[j + 1] = arr[j]; // j+1这个位置被空出来了 j--; } - swap(key, arr[j + 1]); + swap(key, arr[j + 1]);//或者这arr[j+1]=key;也行 } }