Advertisement
Guest User

main.cpp

a guest
Jan 21st, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include "hashmap.h"
  3.  
  4. int main()
  5. {
  6.     typedef HashMap<string, string, hashF, _compFunc> mapa;
  7.  
  8.  
  9.     mapa obiekt;
  10.     obiekt.otwieraniePliku();
  11.     string pierwszy = "pawel";
  12.     string drugi = "milosz";
  13.     string x;
  14.  
  15.     //obiekt.insert(make_pair(pierwszy, drugi));
  16.     for(int i=0; i<HASH_SIZE; ++i)
  17.     {
  18.         if(obiekt.tablica_hash[i])cout<<"zawartosc hashmapy: "<<obiekt.tablica_hash[i]->data.first<<endl;
  19.     }
  20.     cout<<"twoj obiekt to "<< obiekt[pierwszy]<<endl;
  21.     cout<< "do zamiany "<< obiekt.do_zamiany<<endl;
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement