Skip to content

Instantly share code, notes, and snippets.

@fabianosalles
Created November 27, 2019 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabianosalles/5a91701caee7b9e819ff01b0d29cc52d to your computer and use it in GitHub Desktop.
Save fabianosalles/5a91701caee7b9e819ff01b0d29cc52d to your computer and use it in GitHub Desktop.
Lista de tarefas e telefones para uma pessoa
typedef struct _node_tarefa{
struct _node_tarefa *next;
Tarefa data;
} NodeTarefa;
typedef struct {
NodeTarefa *head;
} Tarefas;
typedef struct _node_telefone{
struct _node_telefone *next;
Telefone data;
} NodeTelefone;
typedef struct {
NodeTelefone *head;
} Telefones;
typedef struct {
char nome[80];
Tarefas tarefas;
Telefones telefones;
} Pessoa;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment