예제 #1
0
int main(int argc, char **argv) {
    StudentHashTable students;
    students.print();
    students.add(458209);
    students.print();
    students.add(458211);
    students.print();
    students.remove(458209);
    students.print();
}
예제 #2
0
int main(){
    StudentHashTable table;

    for(int i = 0; i < 100; i++){
        Student s(i*10, rand()%100);
        table.insert(s);
    }
    table.updateGPA(-1, 400);
    table.updateGPA(290, 900);
    table.remove(290); // bucket 96 should be empty

    table.display();
    return 0;
}