Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "hashmap.h"
- int main()
- {
- typedef HashMap<string, string, hashF, _compFunc> mapa;
- mapa obiekt;
- obiekt.otwieraniePliku();
- string pierwszy = "pawel";
- string drugi = "milosz";
- string x;
- //obiekt.insert(make_pair(pierwszy, drugi));
- for(int i=0; i<HASH_SIZE; ++i)
- {
- if(obiekt.tablica_hash[i])cout<<"zawartosc hashmapy: "<<obiekt.tablica_hash[i]->data.first<<endl;
- }
- cout<<"twoj obiekt to "<< obiekt[pierwszy]<<endl;
- cout<< "do zamiany "<< obiekt.do_zamiany<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement