From b43c794c73d2c1c69f3e8594edf8b10eb0dc1a65 Mon Sep 17 00:00:00 2001 From: huihut Date: Fri, 9 Mar 2018 22:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=AB=E9=80=9F=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithm/QuickSort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithm/QuickSort.h b/Algorithm/QuickSort.h index 3959d65..b816c3b 100644 --- a/Algorithm/QuickSort.h +++ b/Algorithm/QuickSort.h @@ -4,7 +4,7 @@ void QuickSort(vector& v, int low, int high) { return; int first = low; // 低位下标 int last = high; // 高位下标 - float key = v[first]; // 设第一个为基准 + int key = v[first]; // 设第一个为基准 while (first < last) {