Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define TM 15
- typedef struct
- {
- tpPont celula = novaCaixa;
- }Matriz;
- //matriz tabuleiro[TM][TM]
- //quando for inserir
- struct tpPont
- {
- char letra;
- tpPont *ant, *prox;
- tpPont *emcima, *embaixo;
- };
- struct tpDescritor
- {
- tpPont *inicio, *fim;
- int qtd;
- };
- tpPont *novaCaixa(void)
- {
- char elemento;
- tpPont *caixa = new tpPont;
- caixa -> letra = elm;
- caixa -> prox = NULL;
- caixa -> ant = NULL;
- caixa -> emcima = NULL;
- caixa -> embaixo = NULL;
- return caixa;
- }
- void inicializa(tpDescritor &desc)
- {
- desc.qtd=0;
- desc.inicio=NULL;
- desc.fim=NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement