From 94e24cd93a9ede0b7ba87ba3fc2060c3d3a8f9a8 Mon Sep 17 00:00:00 2001 From: SocialSisterYi <45892418+SocialSisterYi@users.noreply.github.com> Date: Sun, 11 Oct 2020 15:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E3=80=90bvID=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/bvID.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/other/bvID.md b/other/bvID.md index d9e4395..752ed57 100644 --- a/other/bvID.md +++ b/other/bvID.md @@ -31,7 +31,7 @@ > fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF -4. 按照以下字符顺序编码表编码 +4. 按照以下字符顺序编码表编码b[i] 字符编码表: @@ -55,7 +55,7 @@ > > 9->7 -5. 最后在前面添加字符`BV` +5. 最后在b[i]前面添加字符`BV` [援引知乎@mcfx的回答](https://www.zhihu.com/question/381784377/answer/1099438784) @@ -140,15 +140,15 @@ char* av2bv(unsigned long long av) result[s[i]] = table[(unsigned long long)(av / (unsigned long long)pow(58, i)) % 58]; result[10] = '\0';//添加休止符 char *bv=result; - return bv; + return bv; } int main() { - tr_init(); - printf("%s\n",av2bv(170001)); + tr_init(); + printf("%s\n",av2bv(170001)); printf("%u\n",bv2av("BV17x411w7KC")); - return 0; + return 0; } ```