Top "Stack" questions

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

C++ unable to use peek() function in stack

I am trying to use the peek function in Visual Studio 2010 with these libraries: #include "stdafx.h" #include <string&…

c++ stack peek
Can a C++ class determine whether it's on the stack or heap?

I have class Foo { .... } Is there a way for Foo to be able to separate out: function blah() { Foo foo; // …

c++ stack heap
Is stack in CPU or RAM?

I have a few question about stack. Is stack in CPU or RAM? Is stack a place to run OPcode? …

memory stack cpu opcode eip
How can you use CaptureStackBackTrace to capture the exception stack, not the calling stack?

I marked up the following code: #include "stdafx.h" #include <process.h> #include <iostream> #include <…

c++ winapi visual-c++ stack dbghelp
Stack Empty Exception

I am getting a stack empty exception. How is that possible if the stack is not empty (it has 16 items)? …

c# multithreading visual-studio-2012 stack fifo
Getting a stack overflow exception when declaring a large array

The following code is generating a stack overflow error for me int main(int argc, char* argv[]) { int sieve[2000000]; return 0; } …

c arrays memory stack allocation
Does std::array<> guarantee allocation on the stack only?

Is std::array<int,10> (without myself using new) guaranteed to be allocated in the stack rather then the …

c++ arrays stack dynamic-allocation static-allocation
StackWalk64 on Windows - Get symbol name

Alright, second question on SO in one day. Looks like Windows programming makes me happy... : S I'm currently trying to …

c windows stack backtrace
Stack Size Estimation

In multi-threaded embedded software (written in C or C++), a thread must be given enough stack space in order to …

c++ c embedded stack static-analysis
Proper Java RTP/RTCP stack

I've been struggling to find a decent RTP stack implementation for Java. JMF or FMJ are not options here as …

java stack rtp