YAMILDIAZ

Laragym main.cpp

Jun 19th, 2023
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | Source Code | 0 0
  1. #include <iostream>
  2. #include "funciones.h"
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int opcion;
  9.     int mat[50][10] = {};
  10.     const int CLIENTES = 50;
  11.     const int TIPOS = 10;
  12.  
  13.     do
  14.     {
  15.         mostrarMenu();
  16.         cin >> opcion;
  17.  
  18.         switch(opcion)
  19.         {
  20.         case 0:
  21.             //cargar datos
  22.             cargarDatos(mat);
  23.             break;
  24.         case 1:
  25.             //punto A
  26.             puntoA(mat, CLIENTES, TIPOS);
  27.             break;
  28.         case 2:
  29.             //punto B
  30.             puntoB(mat, CLIENTES, TIPOS);
  31.             break;
  32.         case 3:
  33.             //punto C
  34.             puntoC(mat, CLIENTES, TIPOS);
  35.             break;
  36.         case 9:
  37.             break;
  38.         default:
  39.             cout << "OPCION INCORRECTA" << endl;
  40.             system("pause");
  41.             system("cls");
  42.             break;
  43.         }
  44.     }
  45.     while(opcion != 9);
  46.  
  47.     return 0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment