Questions tagged as 'stack'

1
answer

Print the values in a stack

I have to make a code that prints the all values of a stack in the opposite order in which they were inserted, except that I can only print one value at a time, each time I want to see the previous value I have to select option 8 in my program....
asked by 24.10.2014 / 20:25
1
answer

Infix function for postfix

I'm trying to make a code that makes a function get Ex: 4 + 2 for a postfix Ex: 42+, I can not get the priority of the elements, type, when I make the expression 4 + 2 * 8 the right and print 428 * +, but you're printing 42 * 8 +, because of the...
asked by 04.06.2017 / 18:10
2
answers

jQuery Error: Uncaught RangeError: Maximum call stack size exceeded [closed]

I have a simple function in jQuery, however it is displaying the error:    Uncaught RangeError: Maximum call stack size exceeded To illustrate, there are 2 or 3 links that I have on the page <a id="islpronto_link" href="javascript:vo...
asked by 28.09.2016 / 14:09
1
answer

Using stack concept to invert words

I'm doing a work on Algorithms and Data Structure, which uses the concept of stack to do the inversion of words. However, when compiling the program, it is pointing out some errors that I do not know how to modify them. Note: I have marked th...
asked by 12.03.2018 / 07:22
2
answers

Targeting failure (recorded core image)

I'm doing a program for a simple purpose: Take a phrase and turn it into a version of it with the characters of each word isolated to the contrary, like: "I'm in trouble" would turn "uotsE moc samelborp". When compiling with gcc questao1.c -o q1...
asked by 25.09.2017 / 04:24
2
answers

Are variables declared within blocks or subprograms allocated dynamically?

I'm reading the book "Algorithms and Programming with Examples in Pascal and C" and in it there are two paragraphs that left me in doubt, they are:   Two alternative forms are offered by some programming languages to manage dynamic allocation...
asked by 06.03.2018 / 17:23
1
answer

Error in my program C

I need to create a C program that removes (or copies) values from a queue using the output rules of a stack and adds them to a new structure. I mounted as below but two errors occur:    "undefined reference to 'WinMain @ 16'   File not fou...
asked by 04.06.2016 / 19:29
2
answers

mysql organizing entries in the database

I wanted to know if it is possible to reorder the table entries in mysql, overwriting the deleted entries, and without breaking the other tables. If it is possible, which command would you use and give me some examples. For example: In table...
asked by 01.08.2014 / 04:23
1
answer

Stack operations

I am trying to do operations using stack but at the time of allocating the results in the previous position in the stack it is that I am not succeeding because the result of the operation is not allocated in the desired position: I'm trying t...
asked by 05.11.2018 / 01:56
1
answer

Check if an expression is well formed

I was trying to make a program that checks if an expression is well formed. Something of type {[()()]} is well formed whereas something of type {{())({] is not. I've implemented a "stack.c" library from which I take some func...
asked by 23.08.2018 / 22:35