Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms Data structs
Title: Hashtable Download
 Description: Hash table: HashTable H int s, a, n, w, i, q, t g = 1 cout < < " Enter the number of elements n: \ n" cin> > n InitList_H (H) for (i = 0 i < 16 i++) H.elem [i] = 10000 for (i = 0 i <n i++) {cout<<"输入你要输入的n个数:\n" cin> > S t = 1 H.count++ if (H.elem [s 13] == 10000) H.elem [s 13] = s else (while (H.elem [(s 13+ t ) 16]! = 10000) t++ H.elem [(s 13+ t) 16] = s )) cout < < " Enter the number you want to find: \ n" cin> > w a = SearchHash (H, w) if (a) (if (a == 200) cout < < " find success!:" < <H.elem[0]<<endl else cout<<"查找成功! :"<<H.elem[a]<<endl } else { q=InsertHash(H,w) cout<<q<<"已插入!\n" } for(i=0 i<16 i++) {cout<<H.elem[i]<<" " }//if((i+1) 11==0)cout<<endl } cout<<endl return 0 }
 Downloaders recently: [More information of uploader 326340351]
 To Search:
File list (Check if you may need any files):
Hashtable.txt
    

CodeBus www.codebus.net