Questions tagged as 'lista-encadeada'

1
answer

Data structures - List differences

Please let me know the real difference between these structures below: typedef struct { int info; struct lista * prox struct lista * ant; } tipo_lista; and this: struct noCliente { int tempoUtilizandoMesa; struct noCliente *ant; str...
asked by 01.06.2017 / 15:08
1
answer

List of structs

I would like to know the benefit of using a list in this way. typedef struct Pessoas { char nome[20]; int idade; struct Pessoas *prox; }pessoas; typedef struct Funcionario { pessoas *pessoa; struct Funcionario *prox; }fun...
asked by 07.12.2016 / 03:59
1
answer

Removal item in threaded list C

Well, I'm having a little problem, I'm implementing a simple A *. When I pass the item already checked to the closed list and do the deallocation of the open list item, it is giving undeclared pointer error ... The error is this pointer being...
asked by 25.10.2015 / 04:48
1
answer

Sort linked list in C

My problem involves reading data from a text file, where the CPF is provided, name, email, age, order save using list sort in ascending order through age, if you have the same age sort by cpf. But I'm having trouble sorting the linked list, so f...
asked by 18.09.2018 / 03:28
3
answers

Printf does not print within the while

The purpose of the code is to print the values from linked lists.   Example of how the list is:    L-> [3] -> [4] -> [5] -> X, should print 3, 4, 5. However it does not. typedef struct lligada { int valor; struct lligada *prox; } *LIn...
asked by 24.04.2018 / 13:03
1
answer

How do I leave this list double-chained and circular?

#include <stdio.h> #include <stdlib.h> #include <string.h> struct Tipo_Lista{ char cod[50] ; struct Tipo_Lista *Prox; struct Tipo_Lista *Ant; }; struct Tipo_Lista *Primeiro; struct Tipo_Lista *Ultimo; void FLVazia(...
asked by 11.08.2016 / 16:40
2
answers

Chained list: how to modify data from one list without changing others?

I have a for which generates a list of data list lista[[...], [...]] Within "daughter" lists, you may or may not have other lists lista[['dado11', 'dado12', [link1]],['dado21', 'dado22', [link2]] This data that I represented as a link...
asked by 11.11.2016 / 19:26
1
answer

My code in C contains some errors (Data Structure List)

I created a Music Player for a Data Structure discipline using Double-Chained and Circular List. However, it is showing some errors and I can not see where. Can anybody help me ? Maybe it's logic error and / or syntax error. The play option s...
asked by 21.03.2018 / 23:44
1
answer

List chained within Chained List

I'm having trouble with linked lists within a linked list. The program is a card game in which there is a doubly chained list of players and within each node of that list, a list (the hand) of cards. I can not add a letter to the list of letters...
asked by 23.10.2016 / 21:59
1
answer

Error when printing chained list

Hello, I'm having an error in the function that prints a linked list. I think the error is in the form's function prints, but I may also be saving the address of prox wrongly. Follow the code: /* * File: main.c * Author: pmar...
asked by 02.12.2014 / 00:03