Questions tagged as 'lista-encadeada'

2
answers

C - How can I read data from a file (Given that I use structures for it)

Good evening. I am developing a project for the Faculty in C, where I have a data structure to work with data common to "Offenders", or those who have committed an infraction. typedef struct Infractores { int ordemdeEntrada;//ordem de e...
asked by 27.05.2015 / 00:35
1
answer

Remove item from a simply linked list

I'm having trouble removing an item by the value of a simply linked list. I'm doing this: class No{ public: int dado; No *next; No(int item, No *ptr= NULL){ dado=item; next=ptr; } }; class Lista{ public...
asked by 16.03.2015 / 16:57
1
answer

Linked list, union of structures

I'm having a hard time joining two structures in the same linked list, I've never worked with generic lists or even linked two structures together in one activity, I have the following structures: struct Patio { char iden_patio; int ca...
asked by 30.03.2017 / 03:29
1
answer

Search for item [List]

I want to search an element of a list by a name (vector of characters). I get the name (espm) in function and childbirth for the search. The problem is that the function always tells me "There is no doctor with this specialty" even when the na...
asked by 23.08.2016 / 02:46
2
answers

Problem to remove list element chained in C

My role is only removing the first element if I enter the name of this first element. I would like to know how I do for the function to find the element and remove it. The insert function is working so I will not put it .. Follow the code: t...
asked by 30.05.2015 / 20:29
3
answers

Struct and chained list

I created a person-type structure and I want to use it in a linked list, but the following errors appear:    'No' has no member named 'data', 'No' has no member named 'prox' and unknow type name 'p'. The program did not even run, can anyo...
asked by 25.06.2014 / 20:58
1
answer

Typing a pointer to struct

I was suggested to build a linked list using the following struct as a node: typedef struct node *link; struct node{ int item; link next; }; As I did not understand what the pointer operator along with this typedef I...
asked by 03.10.2015 / 16:14
2
answers

How to create a linked dynamic list inside another dynamic list in C?

I'm having a hard time getting a dynamically linked list inside another using data structure. I can create a dynamic list, but I can not create another one within it. To illustrate what I mean: I have a list of Bands ; each band is a li...
asked by 03.05.2015 / 01:12
1
answer

Java remove an item within a simple linked list

I am having difficulty generating a code to remove an item from a certain position in a linked list, this is not an ArrayList, but a linked list, for this I am creating a method as below: public Object remove(int posicao){ I know the creati...
asked by 06.09.2014 / 19:10
1
answer

How do I add a different object to a list every time I use the add?

I'm having trouble adding a different object to a list of objects every time I use the add of it, I know the problem but I do not know how to fix it, follow the code Class list public class Lista { NodeLista inicio; NodeLista fim;...
asked by 24.05.2014 / 21:32