Questions tagged as 'lista-encadeada'

0
answers

Problems in code in C List chained

I have a problem with a code in C. I'm trying to open a txt file that has movie name, year, actor, ... And I'm putting the movies on a threaded list. The problem is when ordering the movies in the list, I tried to do by the bubble sort method bu...
asked by 26.05.2018 / 02:40
1
answer

Data Structure, Double-chained List. Doubt about the constructor of the DoubleList class

   Note: Code taken from a Data Structure workbook.       Why not pass the number of nodes in the builder's Duplicated Directory (such as in Stack or Queue structures)? public class ListaDupla { private NoDupla prim; private NoDupla...
asked by 18.05.2018 / 01:02
0
answers

Graph represented as list linked to list

I'm trying to implement a graph with list structure attached to the list by pulling the data from a txt file (input.txt). A 100 2 B 3 D 4 B 150 2 C 3 E 2 C 150 1 F 2 D 150 1 E 4 E 100 1 F 1 F 200 0 The idea is that when reading the file a f...
asked by 25.06.2018 / 05:17
0
answers

Retrieve threaded list of .bin file

I'm programming in C and I have a code that uses a 50-position sequential list to store the first address of several linked lists in each of their spaces, so that's fine, the problem is when I fill in the list and write to a .bin file, because a...
asked by 12.11.2017 / 22:32
1
answer

List of lists

I need to create a road map, where each path points to another, and so on. I'm using pointer pointer to a list, so I can build something like an adjacency list, but at the time of inserting paths, something goes wrong on the second path and the...
asked by 16.07.2017 / 08:00
2
answers

Operation to release a circular list

I'm in doubt about implementing the method of releasing memory from a chained circular list: void liberarLista() { if(head == NULL) return; //retorna original(NULL); lista *aux, *temp = head; while(temp->prox != head) {...
asked by 02.05.2017 / 00:28
1
answer

Turning a Simple List into a Double-Chained List

For a college job, I need to have a function in C receive a Simple List and return a Double-Chained List with the even numbers in the Simple List that was passed. My attempt is this, however it only displays the value '2'. typedef struct lista...
asked by 11.04.2017 / 03:39
1
answer

Chained list of strings (vector of characters) in C

I'm doing a job for college, and it's basically about Hash table . At work, I have to do the hash table of a n strings, for example. Instead of doing an array of character arrays (in this case, an array of strings), I would like to implement...
asked by 25.04.2017 / 23:33
1
answer

Creating dynamic lists dynamically and saving their addresses (start of list)

Hello, I'm doing a college work on Hash table and I'm having some difficulties. I'll try not to complicate too much (to tell you the truth, running my code helps me understand what I want to do). Basically, I have, for now, a program that gen...
asked by 27.04.2017 / 02:18
1
answer

Help with nested structs in C

I was creating a list with C and using a struct , after finishing I tried to see what was changing with a nested struct , I created two structs basic, one getting only one value, and other receiving this first and a...
asked by 24.05.2016 / 06:34