From dd9ea0fe7fc758fa1773d0ef9ba8167fc54f2209 Mon Sep 17 00:00:00 2001 From: psr9u3kjo <1274377693@qq.com> Date: Sat, 19 Feb 2022 10:39:40 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E5=9F=BA=E6=95=B0=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 基数排序 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 基数排序 diff --git a/基数排序 b/基数排序 new file mode 100644 index 0000000..fb1ce4e --- /dev/null +++ b/基数排序 @@ -0,0 +1,37 @@ +/*--------------------基数排序---------------------*/ +//该函数的作用是找出num的pos位数的数字(比如:23的个位数数字是3) +int getNumPos(int num, int pos) { + int i; + int temp = 1; + for(i=0;i