Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "veiculos.h"
  4. #include "ficheiros.h"
  5. #include "menus.h"
  6. #include "encomendas.h"
  7.  
  8.  
  9.  
  10.  
  11. int main()
  12.  
  13. {
  14. int nVeiculos, opcao;
  15. tipoVeiculos veiculos[MAX_VEICULOS];
  16. tipoEncomendas encomendas[MAX_ENCOMENDAS];
  17.  
  18. printf("\t\t\t***************** Gestao de destribuicao de encomendas *****************\n\n");
  19. nVeiculos = lerQuantidadeVeiculos("Numero de veiculos existentes na empresa", 0, MAX_VEICULOS);
  20. if (nVeiculos == 0 )
  21. {
  22. printf("\nE impossivel efetuar quaisquer operacoes de distribuicao de encomendas pois nao existem veiculos na empresa!\n");
  23. return 0 ;
  24.  
  25. }
  26.  
  27.  
  28.  
  29.  
  30.  
  31. else{
  32.  
  33.  
  34. do
  35. {
  36. // opcao = menuPrincipal(,,,);
  37.  
  38. switch (opcao)
  39. {
  40.  
  41. case '1' :
  42.  
  43.  
  44.  
  45. break;
  46.  
  47.  
  48.  
  49. default : ;
  50. }
  51.  
  52.  
  53. }
  54. while(opcao != '1');
  55.  
  56.  
  57. }
  58.  
  59.  
  60.  
  61. return 0 ;
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement