Last active
June 1, 2016 22:42
-
-
Save marcoscastro/4b65b51cfb4cb391d758 to your computer and use it in GitHub Desktop.
matriz esparsa - estrutura
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Estrutura célula contendo os seguintes campos: | |
- valor | |
- linha e coluna (posição da célula) | |
- ponteiro para o próximo elemento | |
- ponteiro para o elemento anterior | |
*/ | |
typedef struct celula | |
{ | |
int valor; | |
int lin, col; | |
struct celula *prox; | |
struct celula *ant; | |
} t_celula; | |
// variáveis globais | |
t_celula *primeiro; // primeiro elemento da lista | |
t_celula *ultimo; // último elemento da lista |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment