Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Modificado em:
- * 26/05/2012 18:14
- *
- */
- #include<stdio.h>
- #include<stdlib.h>
- #define M 2
- #define max (2*M)
- #define bool short
- #define true 1
- #define false 0
- #ifndef TYPE_H
- #define TYPE_H
- typedef int Chave;
- typedef struct Registro {
- Chave chave;
- } Registro;
- typedef enum
- { Interna, Externa} Estilo;
- typedef struct Pagina * Apontador;
- typedef struct Pagina {
- Estilo estilo;
- int n;
- union {
- struct{
- Chave chave[max];
- Apontador ponteiro[max+1];
- } indice;
- struct {
- Registro registro [max+1];
- Apontador direita;
- Apontador esquerda;
- } dados;
- } uni;
- } Pagina;
- #endif
Add Comment
Please, Sign In to add comment