Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InserirN* inserir (InserirN* lista, int valor, int pos){
- if (lista == NULL) {
- lista = new InserirFinal;
- lista->valor = valor;
- lista->proximo = NULL;
- return lista;
- }
- else{
- int cont = 0;
- while (cont < pos){
- cont = cont++;
- ptr = ptr->proximo;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement