-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlista_sequencial.h
33 lines (27 loc) · 933 Bytes
/
lista_sequencial.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef LISTA_SEQUENCIAL_H
#define LISTA_SEQUENCIAL_H
#define MAX 1000
struct lista{
int elementos[MAX];
int particao;
};
void inicializar(struct lista *l);
int inserir_fim(struct lista *l, int valor);
int inserir_inicio(struct lista *l, int valor);
void exibir_lista(struct lista *l);
void reverso_lista(struct lista *l);
int concatenar(struct lista *l1, struct lista *l2);
int inserir_posicao(struct lista *l1, int valor, int posicao);
int inserir_ordem(struct lista *l1, int valor);
int remover_inicio(struct lista *l1);
int remover_fim(struct lista *l1);
int remover_posicao(struct lista *l1, int posicao);
int remover_valor(struct lista *l, int valor);
void procurar(struct lista *l, int valor);
void somatorio(struct lista *l);
void tamanho(struct lista *l);
int quadrado(struct lista *l);
int qtd_primo(struct lista *l);
int eh_primo(int num);
void sair(int num);
#endif