Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #ifndef CINEMAS_H_INCLUDED
  2. #define CINEMAS_H_INCLUDED
  3. #define MAX 100
  4.  
  5. int numeroCinemas;
  6. int numeroFilmes;
  7. int numeroAtores;
  8.  
  9. typedef struct ator
  10. {
  11. char nome[MAX];
  12. int idade;
  13. }ATOR;
  14.  
  15. typedef struct genero
  16. {
  17. char nome[MAX];
  18. }GENERO;
  19.  
  20. typedef struct filmes{
  21. char nome[MAX];
  22. int duracao;
  23. int idade;
  24. int numAtores;
  25. GENERO gen[MAX];
  26. ATOR ato[MAX];
  27. }FILME;
  28.  
  29. typedef struct cinema {
  30. char nome[MAX];
  31. int numFilmes;
  32. FILME fil[MAX];
  33. }CINEMA;
  34.  
  35. CINEMA cine[MAX];
  36.  
  37. FILME fcopy[MAX];
  38. ATOR acopy[MAX];
  39.  
  40. void print_menu();
  41. void menu();
  42.  
  43. void cria_cinema(int idCinema);
  44. void cria_filme(int idFilme);
  45. void cria_ator(int idAtor);
  46.  
  47. int search_cinema(char nomeC[]);
  48. int search_filme_in_fcopy(char nomeF[]);
  49. int search_ator_in_acopy(char nomeA[]);
  50. int search_filme_in_cinema(char nomeC[], char nomeF[]);
  51. int search_ator_in_filme(char nomeC[], char nomeF[], char nomeA[]);
  52.  
  53. void inserir_filme(char nomeC[], char nomeF[]);
  54. void inserir_ator(char nomeC[], char nomeF[], char nomeA[]);
  55.  
  56. void editar_filme_no_cinema(char nomeC[], char nomeF[]);
  57. void editar_ator_no_filme(char nomeC[], char nomeF[], char nomeA[]);
  58.  
  59. void listar_cinemas();
  60. void listar_filmes();
  61. void listar_atores();
  62. void listar_filmes_no_cinema(char nomeC[]);
  63. void listar_atores_no_filme(char nomeC[], char nomeF[]);
  64. void listar_filmes_dum_ator(char nomeA[]);
  65.  
  66. void gravar_txt();
  67. //void ler_txt();
  68.  
  69. #endif // CINEMAS_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement