/* Arquivo para facilitar o uso das structs em diferentes partes do programa * * Autores: Bruno Freitas Tissei e Felipe Shi Iu Wu * Disciplina: Algoritmos e Estrutura de Dados II * Entrega: 20/11/2015 */ #ifndef _ESTRUTURAS_H #define _ESTRUTURAS_H // disco - nodo do tipoLista typedef struct disco { int id; char artista[MAXS]; char album[MAXS]; float valor; struct disco *prox; } disco; // lista de discos typedef struct { struct disco *inicio; struct disco *fim; } tipoLista; // cliente - elemento que compoe tipo fila typedef struct { char nome[MAXS]; float gastoTotal; tipoLista *listaCompras; } cliente; // fila de clientes typedef struct { cliente vetor[MAXF]; int frente, fim; } tipoFila; // recibo - nodo do tipoPilha typedef struct recibo { char nome[MAXS]; float valorGasto; struct recibo *frente; } recibo; // pilha de recibos typedef struct { int tamanho; recibo *topo; } tipoPilha; #endif