From 73693a61071434043ec5bc96a40270055431e3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=B3=BD=E5=88=A9?= <3231991094@qq.com> Date: Fri, 5 Jan 2024 05:24:00 +0000 Subject: [PATCH] =?UTF-8?q?=E5=93=88=E5=B8=8C=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 谢泽利 <3231991094@qq.com> --- .../\345\223\210\345\270\214\350\241\250.cpp" | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 "2224020144/\347\254\2549\347\253\240/\345\223\210\345\270\214\350\241\250.cpp" diff --git "a/2224020144/\347\254\2549\347\253\240/\345\223\210\345\270\214\350\241\250.cpp" "b/2224020144/\347\254\2549\347\253\240/\345\223\210\345\270\214\350\241\250.cpp" new file mode 100644 index 00000000..6d2afa91 --- /dev/null +++ "b/2224020144/\347\254\2549\347\253\240/\345\223\210\345\270\214\350\241\250.cpp" @@ -0,0 +1,67 @@ +#include +#define MaxSize 1005 +int ht[MaxSize]; +int a[MaxSize]; +int n; +void insertht(int x,int no) +{ + ht[x]=no; +} +void deleteht(int x) +{ + ht[x]=-1; +} +void dispa() +{ + printf("a:"); + for(int i=0;i