SHARE
TWEET

Untitled

a guest May 22nd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string.h>
  4. #include <conio.h>
  5.  
  6. using namespace std;
  7.  
  8. struct NodeE{
  9.     string *data[5];
  10.     int amount; // so luong vd
  11. };
  12.  
  13. struct NodeM{
  14.     string data;
  15.     NodeM *pNext;
  16. };
  17.  
  18. struct ListMean{
  19.     NodeM *pFirst;
  20. };
  21.  
  22. struct NodeW{
  23.     string word;
  24.     string type;
  25.     ListMean mean;
  26.     NodeE ex;
  27. };
  28.  
  29. struct NodeD{
  30.     NodeW data;
  31.     NodeD *pLeft;
  32.     NodeD *pRight;
  33. };
  34.  
  35. struct HashTable{
  36.     NodeD *pHead;
  37.     NodeD *pTail;
  38. };
  39.  
  40. HashTable *Dic = new HashTable[26];
  41.  
  42. int HamBam(string str){
  43.     return str[0]-97;
  44. }
  45.  
  46. void MakeHashTable(){
  47.     for (int i = 0; i < 26; i++){
  48.         Dic[i].pHead == NULL;
  49.         Dic[i].pTail == NULL;
  50.     }
  51. }
  52.  
  53.  
  54. int main()
  55. {
  56.  
  57.  system ("pause");
  58. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top