Guest User

Untitled

a guest
Aug 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /* Modificado em:
  2. * 26/05/2012 18:14
  3. *
  4. */
  5.  
  6. #include<stdio.h>
  7. #include<stdlib.h>
  8.  
  9. #define M 2
  10. #define max (2*M)
  11. #define bool short
  12. #define true 1
  13. #define false 0
  14.  
  15. #ifndef TYPE_H
  16. #define TYPE_H
  17.  
  18. typedef int Chave;
  19. typedef struct Registro {
  20. Chave chave;
  21. } Registro;
  22.  
  23. typedef enum
  24. { Interna, Externa} Estilo;
  25.  
  26. typedef struct Pagina * Apontador;
  27. typedef struct Pagina {
  28. Estilo estilo;
  29. int n;
  30. union {
  31. struct{
  32. Chave chave[max];
  33. Apontador ponteiro[max+1];
  34. } indice;
  35. struct {
  36. Registro registro [max+1];
  37. Apontador direita;
  38. Apontador esquerda;
  39. } dados;
  40. } uni;
  41. } Pagina;
  42.  
  43. #endif
Add Comment
Please, Sign In to add comment