Questions tagged as 'pilas'

0
answers

Problem when adding and removing item from a stack with linked lists in C

I have a problem adding and removing items from a stack with linked lists. My push function adds but when I want to pop them out with pop it tells me it's empty. Here is the code: Push function BOOLEAN lpila_push(LPila p, void* valor){ /*...
asked by 07.06.2018 / 23:35
0
answers

Infija a Posfija in c ++ using batteries

Hi, I need to do a program that converts an equation in infixed notation to a posifija notation and prints the equation in infix and posfija notation. I already reviewed it several times and made some modifications but I can not find the error,...
asked by 16.05.2018 / 03:01
1
answer

infix notation to postfix in java

I hope they are very good. I would like you to help me please with the following code: import java.util.Scanner; import java.util.Stack; public class InfijaPrePost { public static void main(String[] args) { //se lee la notacion Syste...
asked by 09.04.2018 / 18:12
3
answers

I need to store the same data in a stack and in a vector.

When I send print the vector says: "[I @ 1540e19d" Urgent help please! : ( public static void main(String[] args) { Scanner sc = new Scanner (System.in); int n,x,dato,cp=0,cn=0,guardaDato; System.out.println("=======================...
asked by 28.02.2018 / 00:02
0
answers

Load more than one data in a PILA

Dear, I have a question with this exercise, that is, I can not understand how to work these BATTERIES, I understand should I use more than two, or can I load more than one data in each element? that is, for example, stack [dni] [name] [dni spous...
asked by 03.10.2017 / 00:13
2
answers

How to eliminate in a pilo or arraylist a data and that the positions move? [closed]

The idea is in a pile or arraylist to eliminate a data that is in the middle and that space that is left there is not null so that if several numbers are deleted there are no null spaces between the data of the array or stack.     
asked by 01.09.2017 / 01:42
1
answer

Why do these errors come out?

Class code "linkedStackType" #define LINKEDSTACKTYPE_H #ifndef LINKEDSTACKTYPE_H #endif #include "NodoStack.h" #include <cassert> template < class TYPE > class linkedStackType { public: bool isEmptyStack() const; bool isFu...
asked by 21.08.2017 / 19:12
2
answers

Stacks with fixes in c ++

I need to make a code that meets these conditions: I already made the program using linked lists: #include<iostream> using namespace std; struct nodo{ int dato; nodo *sig=NULL; }; void apilar(nodo *&inicio,int x);...
asked by 24.07.2017 / 17:27
1
answer

I do not work the stack swing

Esoy doing a stack balancing program, I run the program but nothing happens, the execution time is 0 seconds, could you tell me what I'm wrong? This is the code: package bracket.checker; import java.util.Stack; /** * * @author Usuario */...
asked by 25.04.2017 / 06:13
1
answer

how do I make a pile of objects in java? what I want to put is identifier and color

* and open the template in the editor. */ package com.lcda.pila.modelo; /** * * @author geovanny9596 */ public class Plato { private String identificador; private String color; public String getIdentificador() { return...
asked by 03.10.2018 / 01:48