Top "Stack" questions

A stack is a last in, first out (LIFO) abstract data type and data structure.

How to avoid adding same fragment to stack

I need some help. em adding fragment to activity this way. problem is on each call of openFragment it create …

android android-fragments stack android-fragmentactivity fragmentmanager
Stack-buffer based STL allocator?

I was wondering if it practicable to have an C++ standard library compliant allocator that uses a (fixed sized) buffer …

c++ stl stack allocator
Topological sort using DFS without recursion

I know the common way to do a topological sort is using DFS with recursion. But how would you do …

c++ algorithm stack depth-first-search topological-sort
Why is memory split up into stack and heap?

Possible Duplicate: What and where are the stack and heap I have a couple of questions on stack versus heap. …

memory memory-management stack heap
Pushing a Lua table

I have created a Lua table in C, but I'm not sure how to push that table onto the top …

c++ c lua stack lua-table
What is an assembly-level representation of pushl/popl %esp?

C++ ATT Assembly I'm trying to understand the behavior of the following two instructions: pushl %esp And: popl %esp Note …

assembly x86 stack att
Why not use pointers for everything in C++?

Suppose that I define some class: class Pixel { public: Pixel(){ x=0; y=0;}; int x; int y; } Then write some code …

c++ pointers stack heap
Infix Calculator Expression Parser

How do I parse and evaluate expressions in an infix calculator grammar? I thought of two ways. The 1st involves …

c++ parsing stack expression calculator
Cassandra:The stack size specified is too small, Specify at least 228k

I'm getting this error when starting cassandra after upgrade. Any idea? # cassandra -f xss = -ea -javaagent:/usr/share/cassandra/lib/…

cassandra jvm stack ubuntu-14.04 javaagents
How to create a raster brick with rasters of different extents?

I am new in R so this question is very basic but I have been struggling with it and could …

r stack crop raster resampling