int main(int argc, char *argv[]) {
	struct hash_tablosu *htable=NULL;
    
    initialize_hash_table1(&htable,3,11);
    
    ekle_hash1(htable,"amasya");
    ekle_hash1(htable,"batman");
    ekle_hash1(htable,"urfa");
    ekle_hash1(htable,"kayseri");
    ekle_hash1(htable,"adana");
    ekle_hash1(htable,"mus");
    ekle_hash1(htable,"kayseri");
 	ekle_hash1(htable,"canakkale");
    ekle_hash1(htable,"nigde");
    ekle_hash1(htable,"giresun");
    ekle_hash1(htable,"balikesir");
    ekle_hash1(htable,"batman");
	ekle_hash1(htable,"bursa");
    ekle_hash1(htable,"konya");
    ekle_hash1(htable,"ordu");
    ekle_hash1(htable,"rize");
    ekle_hash1(htable,"zonguldak");
    ekle_hash1(htable,"kocaeli");

    
    
    hash_table_print1(htable);
    htable=hash_tablosu_buyut(&htable,7,23);    
    hash_table_print1(htable);    
    htable=hash_tablosu_buyut(&htable,89,101);
    hash_table_print1(htable);    
	return 0;
}
Пример #2
0
int main(int argc, char** argv) {
  /*  struct hash_tablosu htable;
    htable.tablo_basi=initialize_hash_table();
    htable.tablo_uzunlugu=TABLE_SIZE;
    
    insert_hash_table(htable.tablo_basi,"istanbul");
    insert_hash_table(htable.tablo_basi,"trabzon");
    insert_hash_table(htable.tablo_basi,"urfa");
    insert_hash_table(htable.tablo_basi,"kayseri");
    insert_hash_table(htable.tablo_basi,"bursa");
    insert_hash_table(htable.tablo_basi,"konya");
    insert_hash_table(htable.tablo_basi,"ordu");
    insert_hash_table(htable.tablo_basi,"rize");
    insert_hash_table(htable.tablo_basi,"zonguldak");
    insert_hash_table(htable.tablo_basi,"kocaeli");
    insert_hash_table(htable.tablo_basi,"canakkale");
    insert_hash_table(htable.tablo_basi,"nigde");
    insert_hash_table(htable.tablo_basi,"giresun");
    
    
    hash_table_print(htable.tablo_basi); */
    
    
    struct hash_tablosu *htable=NULL;
    
    initialize_hash_table1(&htable,3,11);
  
    
    insert_hash_table1(htable,"istanbul");
    insert_hash_table1(htable,"trabzon");
    insert_hash_table1(htable,"urfa");
    insert_hash_table1(htable,"kayseri");
    insert_hash_table1(htable,"bursa");
    insert_hash_table1(htable,"konya");
    insert_hash_table1(htable,"ordu");
    insert_hash_table1(htable,"rize");
    insert_hash_table1(htable,"zonguldak");
    insert_hash_table1(htable,"kocaeli");
    insert_hash_table1(htable,"canakkale");
    insert_hash_table1(htable,"nigde");
    insert_hash_table1(htable,"giresun");
    insert_hash_table1(htable,"adana");
    insert_hash_table1(htable,"mus");
    insert_hash_table1(htable,"kayseri");
    insert_hash_table1(htable,"balikesir");
    insert_hash_table1(htable,"gumushane");
    
    
    hash_table_print1(htable);
    
    htable=hash_tablosu_buyut(&htable,7,23);
    
    hash_table_print1(htable);
    
    htable=hash_tablosu_buyut(&htable,89,101);
    hash_table_print1(htable);
    
    return (EXIT_SUCCESS);
}