27 lines
862 B
C++
27 lines
862 B
C++
#include <iostream>
|
|
#include "hashTable.h"
|
|
using namespace std;
|
|
int main() {
|
|
hashTable<string, int> table;
|
|
table.insert("start", 0);
|
|
table.insert("first", 1);
|
|
table.insert("second", 2);
|
|
table.insert("third", 3);
|
|
table.insert("fourth", 4);
|
|
table.insert("fifth", 5);
|
|
table.insert("sixth", 6);
|
|
table.insert("seven", 7);
|
|
table.insert("eight", 8);
|
|
table.insert("nine", 9);
|
|
table.insert("ten", 10);
|
|
table.insert("eleven", 11);
|
|
table.insert("twelve", 12);
|
|
table.insert("Manbo", 13);
|
|
cout << table.searchi("first") << " " << table.searchj("first") << endl;
|
|
cout << table.searchi("second") << " " << table.searchj("second") << endl;
|
|
cout << table.searchi("third") << " " << table.searchj("third") << endl;
|
|
|
|
cout << table.searchi("Manbo") << " "<< table.searchj("Manbo") << endl;
|
|
|
|
return 0;
|
|
} |