forked from bastelfreak/erp-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenue.cpp
More file actions
46 lines (36 loc) · 890 Bytes
/
Copy pathmenue.cpp
File metadata and controls
46 lines (36 loc) · 890 Bytes
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
/* Created by Bennerscheid, Bost, Reuter
Responsable Bennerscheid, Bost, Reuter
provides three functions for menue stuff
*/
#include <iostream>
#include "menue.h"
int menue (void)
{
int choice;
std::cout << " Please choose one of these menue points: " << std::endl;
std::cout << " (1) Statisticfuu " << std::endl;
std::cout << " (2) Create a new article " << std::endl;
std::cout << " (3) Article informations " << std::endl;
std::cout << " (4) Search " << std::endl;
std::cout << " Please enter your choice: ";
std::cin >> choice;
switch (choice)
{
case 1: return 1;
break;
case 2: return 2;
break;
case 3: return 3;
break;
case 4: return 4;
break;
default:
do
{
std::cout << "Please choose a valid entry!: ";
std::cin >> choice;
}while (choice > 4);
break;
}
return choice;
}