Questions tagged as 'lista-encadeada'

0
answers

Error converting an infix expression to fixed post

Hello, I personally need to read an infix expression and convert it to postfix. I've reviewed the code several times but I can not find the error. When I pass an expression for example: a + b, it returns me ab. I needed to return ab +. I t...
asked by 24.10.2018 / 23:25
1
answer

Simple Chained List

I'm having problems with the function of removing an element at the end of the List Defining the node: class Node { Node proximo; int chave; Node(int chave) { this.chave = chave; } }...
asked by 05.09.2018 / 16:11
0
answers

Error in list of structures in C

I'm working on a structure list code, where I have a struct called cad that contains the registration, name, and salary fields. And a list containing a field of type struct cad that stores the fields of the struct cad in list form. So the code l...
asked by 09.06.2018 / 19:22
1
answer

Null list error

I'm having a problem, my code is running right the 3 option only the first time if I go back to the menu and try again it appears nulla. The case 3 is to list a list of names in reverse alphabetical and alphabetical order (InsertOrd 0 / I...
asked by 26.05.2018 / 21:06
0
answers

Removing item X from an L list

I need to get the user to remove the item that he requests from the list, but I have no idea how to do it. Outline: #include <iostream> #include <list> #include <string> using namespace std; struct aluno { int matric...
asked by 30.03.2018 / 06:30
1
answer

How to omit space to enter only numbers in different lists

#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct NBIG{ int numero; struct NBIG *nseg; struct NBIG *nant; }Nbig; int main(int argc,char *argv[]) { char *nf,ch; Nbig *vem=NULL,*resm...
asked by 05.04.2018 / 10:29
0
answers

Implement interface with linked lists

Good evening guys, I needed some help here. I'm starting to learn the implementation of linked lists in java, but I can not understand or find a solution to this. I have this interface: public interface ISet<E> extends Iterable<...
asked by 30.01.2018 / 21:29
1
answer

Removal of element at the beginning of the list chained in C

In this program in C, I'm trying to create a function that removes the first element from a linked dynamic list ... #include <stdio.h> #include <stdlib.h> struct no { int dado; struct no *prox; }; The functions of the s...
asked by 17.12.2017 / 22:51
0
answers

Problem removing nodes from a list

Good evening, I'm doing a program that is kind of a "candy crush" in SDL. And I needed your help to help me remove the balls from the game, which in this case are the nodes in the list. The program is going through the game looking for the...
asked by 13.12.2017 / 21:16
1
answer

Function that shows list in reverse order

def imprimeDeTrasParaFrente(lista): if lista == None : return imprimeDeTrasParaFrente(lista.proximo) print lista, class Node(object): def __init__(self, carga=None, proximo=None): self.carga = carga self.prox...
asked by 24.10.2017 / 21:21