Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string.h>
- #include <conio.h>
- using namespace std;
- struct NodeE{
- string *data[5];
- int amount; // so luong vd
- };
- struct NodeM{
- string data;
- NodeM *pNext;
- };
- struct ListMean{
- NodeM *pFirst;
- };
- struct NodeW{
- string word;
- string type;
- ListMean mean;
- NodeE ex;
- };
- struct NodeD{
- NodeW data;
- NodeD *pLeft;
- NodeD *pRight;
- };
- struct HashTable{
- NodeD *pHead;
- NodeD *pTail;
- };
- HashTable *Dic = new HashTable[26];
- int HamBam(string str){
- return str[0]-97;
- }
- void MakeHashTable(){
- for (int i = 0; i < 26; i++){
- Dic[i].pHead == NULL;
- Dic[i].pTail == NULL;
- }
- }
- int main()
- {
- system ("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement