-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.cpp
More file actions
66 lines (54 loc) · 1.88 KB
/
Menu.cpp
File metadata and controls
66 lines (54 loc) · 1.88 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
58
59
60
61
62
63
64
65
66
#include "Menu.h"
char Menu::selectFromMainMenu() {
char choice;
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: ";
choice = AuxiliaryMethods::inputChar();
return choice;
}
char Menu::selectFromLoggedInUserMenu() {
char choice;
system("cls");
cout << " >>> MENU UZYTKOWNIKA <<<" << endl;
cout << "---------------------------" << endl;
cout << "1. Dodaj przychod" << endl;
cout << "2. Dodaj wydatek" << endl;
cout << "3. Bilans z biezacego miesiaca" << endl;
cout << "4. Bilans z poprzedniego miesiaca" << endl;
cout << "5. Bilans z wybranego okresu" << endl;
cout << "---------------------------" << endl;
cout << "6. Zmien haslo" << endl;
cout << "7. Wyloguj sie" << endl;
cout << "---------------------------" << endl;
cout << "Twoj wybor: ";
choice = AuxiliaryMethods::inputChar();
return choice;
}
char Menu::selectFromIncomesMenu() {
char choice;
system("cls");
cout << endl << " >>> DODAJ PRZYCHOD <<<" << endl;
cout << "---------------------------" << endl;
cout << "1 - Dodaj dzisiejszy przychod" << endl;
cout << "2 - Dodaj przychod z inna data" << endl;
cout << endl << "Twoj wybor: ";
choice = AuxiliaryMethods::inputChar();
return choice;
}
char Menu::selectFromExpensesMenu() {
char choice;
system("cls");
cout << endl << " >>> DODAJ WYDATEK <<<" << endl;
cout << "---------------------------" << endl;
cout << "1 - Dodaj dzisiejszy wydatek" << endl;
cout << "2 - Dodaj wydatek z inna data" << endl;
cout << endl << "Twoj wybor: ";
choice = AuxiliaryMethods::inputChar();
return choice;
}