-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
45 lines (38 loc) · 1.29 KB
/
Copy pathmain.cpp
File metadata and controls
45 lines (38 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <iostream>
#include "openAddressing.hpp"
#include "list.hpp"
#include "separateChain.hpp"
#include "visualize.hpp"
#include "measurment.hpp"
void mainMenu(){
std::cout << "\n=====MENU GLOWNE====\n";
std::cout << "Co chcesz zrobic?\n";
std::cout << "1) Zobaczyc dzialanie slownika na tablicy mieszajacej z adresowaniem otwartym\n";
std::cout << "2) Zobaczyc dzialanie slownika na kubelkach z lista\n";
std::cout << "3) Wykonac pomiary operacji insert() i remove() dla obu implementacji\n";
std::cout << "Wybierz dowolny inny klawisz, aby wyjsc z programu\n";
std::cout << "\nWpisz numer odpowiadajacy Twojej decyzji: ";
int choice; std::cin >> choice;
int numElements;
switch (choice)
{
case 1:
menuOpenAddress();
mainMenu();
case 2:
menuSeparateChain();
mainMenu();
case 3:
std::cout << "Ilosc danych dla ktorej chcesz przeprowadzic pomiary: "; std::cin >> numElements;
openAddressMeasureInsert(numElements);
openAddressMeasureRemove(numElements);
separateChainMeasureInsert(numElements);
separateChainMeasureRemove(numElements);
mainMenu();
default:
break;
}
}
int main() {
mainMenu();
}