-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuPrincipal.cpp
More file actions
64 lines (54 loc) · 1.49 KB
/
Copy pathMenuPrincipal.cpp
File metadata and controls
64 lines (54 loc) · 1.49 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
#include <iostream>
#include "MenuPrincipal.h"
using namespace std;
void MenuPrincipal::menu()
{
int option;
while(true){
system("cls");
///"R" raw string literal: se trata como una cadena literal. Se usa R"(...)"
cout << R"(
_______________________
| |
| MENU PRINCIPAL |
|_______________________|
|_______________________|
| |
| INGRESE UNA OPCION |
|_______________________|
| |
| 1. PRODUCTOS |
| 2. VENTAS |
| 3. CONFIGURACION |
| 0. SALIR |
|_______________________|
OPCION: )";cin>>option;
/*)
cout << "------ MENU PRINCIPAL ------- " << endl;
cout << "1- PRODUCTOS " << endl;
cout << "2- VENTAS" << endl;
cout << "3- CONFIGURACION" << endl;
cout << "-----------------------------" << endl;
cout << "0- SALIR" << endl;
cout << "Opcion: "<< endl;
cin >> option;
*/
switch(option){
case 1:
_uno.menu();
break;
case 2:
_dos.menuVentas();
break;
case 3:
_tres.menu();
break;
case 0:return;
break;
default:cout<<" OPCION INCORRECTA "<<endl;
break;
}
system("pause");
system("cls");
}
}