-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
192 lines (162 loc) · 5.87 KB
/
main.cpp
File metadata and controls
192 lines (162 loc) · 5.87 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
//#############################################################################
// ARCHIVO : main.cpp
// AUTOR/ES : Javier Pereyra de autor/es
// VERSION : 0.02 beta.
// FECHA DE CREACION : 27/04/2018.
// ULTIMA ACTUALIZACION: 27/04/2018.
// LICENCIA : GPL (General Public License) - Version 3.
//
// **************************************************************************
// * El software libre no es una cuestion economica sino una cuestion etica *
// **************************************************************************
//
// Este programa es software libre; puede redistribuirlo o modificarlo bajo
// los terminos de la Licencia Publica General de GNU tal como se publica por
// la Free Software Foundation; ya sea la version 3 de la Licencia, o (a su
// eleccion) cualquier version posterior.
//
// Este programa se distribuye con la esperanza de que le sea util, pero SIN
// NINGUNA GARANTIA; sin incluso la garantia implicita de MERCANTILIDAD o
// IDONEIDAD PARA UN PROPOSITO PARTICULAR.
//
// Vea la Licencia Publica General GNU para mas detalles.
//
// Deberia haber recibido una copia de la Licencia Publica General de GNU junto
// con este proyecto, si no es asi, escriba a la Free Software Foundation, Inc,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, EE.UU.
//=============================================================================
// SISTEMA OPERATIVO : Linux (Ubuntu) / Windows XP / Windows 7.
// IDE : Code::Blocks - 8.02 / 10.05
// COMPILADOR : GNU GCC Compiler (Linux) / MinGW (Windows).
// LICENCIA : GPL (General Public License) - Version 3.
//=============================================================================
// DESCRIPCION:
// Breve explicacion sobre el contenido del archivo.
//
////////////////////////////////////////////////////////////////////////////////
//*****************************************************************************
// CONFIGURACION MULTIPLATAFORMA
//=============================================================================
// COMPILACION EN WINDOWS
//-----------------------------------------------------------------------------
// Si este programa se va a compilar en Windows, descomente las tres lineas
// siguientes, y comente las tres lineas de "COMPILACION EN LINUX".
//-----------------------------------------------------------------------------
//#ifndef _WIN32
// # define _WIN32
//#endif
//=============================================================================
// COMPILACION EN LINUX
//-----------------------------------------------------------------------------
// Si este programa se va a compilar en Linux, descomente las tres lineas
// siguientes, y comente las tres lineas de "COMPILACION EN WINDOWS".
//-----------------------------------------------------------------------------
#ifndef _LINUX
# define _LINUX
#endif
//*****************************************************************************
// INCLUSIONES ESTANDAR
//=============================================================================
#include <iostream> // Libreria de flujos de Entrada/Salida que contiene los
// objetos cin, cout y endl.
#include <cstdlib> // Libreria estandar que contiene la funcion exit().
//*****************************************************************************
// INCLUSIONES PERSONALES
//=============================================================================
#include "CSYSTEM/csystem.h" // Libreria para multiplataforma.
#include "CSYSTEM/cadenas.h" // Mi libreria para el TSP.
#include "CSYSTEM/menu.h"
//==============================================================================
// DECLARACION DEL ESPACIO DE NOMBRES POR DEFECTO
//------------------------------------------------------------------------------
using namespace std;
//==============================================================================
// FUNCION PRINCIPAL - PUNTO DE INICIO DEL PROYECTO
//------------------------------------------------------------------------------
int main()
{
bool salir= false;
char opcion;
while(!salir)
{
sys::cls(); //borro la pantalla
menu();
cin>>opcion;
cin.ignore();
switch(opcion)
{
case 'a':
case 'A':
{
} break;
case 'b':
case 'B':
{
} break;
case 'c':
case 'C':
{
} break;
case 'd':
case 'D':
{
} break;
case 'e':
case 'E':
{
} break;
case 'f':
case 'F':
{
} break;
case 'g':
case 'G':
{
} break;
case 'h':
case 'H':
{
} break;
case 'i':
case 'I':
{
} break;
case 'j':
case 'J':
{
} break;
case 'k':
case 'K':
{
} break;
case 'l':
case 'L':
{
} break;
case 'm':
case 'M':
{
} break;
case 's':
case 'S':
{
cout <<"Salistes del menu, presione enter nuevamente.."<<endl;
salir=true;
}
break;
default:
{
cout <<"Opcion incorrecta!!!";
}
break;
}
cin.get();
}
//--------------------------------------------------------------------------
// FIN DE LA FUNCION main() SIN ERRORES.
//--------------------------------------------------------------------------
return 0;
}
//=============================================================================
// FIN DE ARCHIVO
//#############################################################################