-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinkedListMain.cpp
More file actions
49 lines (46 loc) · 1.67 KB
/
Copy pathlinkedListMain.cpp
File metadata and controls
49 lines (46 loc) · 1.67 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
46
47
48
49
#include "./Linked List Chapter Files/declaration.hpp"
#include <iostream>
int main() {
while (true) {
std::cout << "Aplikasi Implementasi Linked List" << "\n";
// std::cout << "what the fuck am i supposed to do from here" << "\n";
std::cout << "(1) String Reversal | (2) Stack Implementation | (3) Queue Implementation | "
<< "(4) Ordered Data Input | (5) Doubly Linked List | (6) Infix-Postfix Processing | (7) Kode-Nama | (8) Keluar\n";
int input{};
std::cout << "Input: ";
std::cin >> input;
switch (input) {
case 1:
// call string reversal function.
LinkedListChapter::ReverseString::demo();
break;
case 2:
// call stack implementation function.
LinkedListChapter::StackDemo::demo();
break;
case 3:
// call queue implementation function.
LinkedListChapter::QueueDemo::demo();
break;
case 4:
// call ordered data input function.
LinkedListChapter::OrderedListDemo::demo();
break;
case 5:
// call doubly linked list function.
LinkedListChapter::DoublyLinkedListDemo::demo();
break;
case 6:
LinkedListChapter::PostfixProcessingDemo::demo();
// call infix-postfix processing function.
break;
case 7:
LinkedListChapter::KeyValListDemo::demo();
case 8:
return 0;
break;
default:
break;
}
}
}