-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.cpp
More file actions
57 lines (48 loc) · 1.66 KB
/
Menu.cpp
File metadata and controls
57 lines (48 loc) · 1.66 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
50
51
52
53
54
55
56
57
#include "Menu.h"
char Menu::wybierzOpcjeZMenuGlownego() {
char wybor;
system("cls");
cout << " >>> MENU GLOWNE <<<" << endl;
cout << "---------------------------" << endl;
cout << "1. Rejestracja" << endl;
cout << "2. Logowanie" << endl;
cout << "9. Koniec programu" << endl;
cout << "---------------------------" << endl;
cout << "Twoj wybor: ";
wybor = MetodyPomocnicze::wczytajZnak();
return wybor;
}
char Menu::wybierzOpcjeZMenuUzytkownika() {
char wybor;
system("cls");
cout << " >>> MENU UZYTKOWNIKA <<<" << endl;
cout << "---------------------------" << endl;
cout << "1. Dodaj adresata" << endl;
cout << "2. Wyszukaj po imieniu" << endl;
cout << "3. Wyszukaj po nazwisku" << endl;
cout << "4. Wyswietl adresatow" << endl;
cout << "5. Usun adresata" << endl;
cout << "6. Edytuj adresata" << endl;
cout << "---------------------------" << endl;
cout << "7. Zmien haslo" << endl;
cout << "8. Wyloguj sie" << endl;
cout << "---------------------------" << endl;
cout << "Twoj wybor: ";
wybor = MetodyPomocnicze::wczytajZnak();
return wybor;
}
char Menu::wybierzOpcjeZMenuEdycja() {
char wybor;
cout << endl << " >>> MENU EDYCJA <<<" << endl;
cout << "---------------------------" << endl;
cout << "Ktore dane zaktualizowac: " << endl;
cout << "1 - Imie" << endl;
cout << "2 - Nazwisko" << endl;
cout << "3 - Numer telefonu" << endl;
cout << "4 - Email" << endl;
cout << "5 - Adres" << endl;
cout << "6 - Powrot " << endl;
cout << endl << "Twoj wybor: ";
wybor = MetodyPomocnicze::wczytajZnak();
return wybor;
}