Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- #include "FormaMenu.cpp"
- #include "RellenarVector.cpp"
- //Definiciones de las teclas/opciones
- const int OPCION_RELLENAR = 1;
- const int OPCION_COMPROBARref = 2;
- const int OPCION_RELLENAR2 = 3;
- const int OPCION_BINARY =4;
- const int OPCION_SALIR = 5;
- //Definición longitud array.
- const int MAX = 6;
- int main()
- {
- int opcion;
- int vector[MAX];
- do
- {
- cout << "Introduce una de als opciones" << endl;
- muestraMenuPrincipal();
- cin >> opcion;
- //Switch case apra controlar las distinats opciones.
- switch (opcion)
- {
- case OPCION_RELLENAR:
- insertarValores(vector);
- MuestraValores();
- break;
- case OPCION_COMPROBARref:
- break;
- case OPCION_RELLENAR2:
- break;
- case OPCION_BINARY:
- break;
- }
- } while (opcion!=OPCION_SALIR);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement