#include <stdio.h> #include "Stack.h" // What's wrong with me? Stack::Stack() { head = NULL; } Stack::~Stack() { head = NULL; } void Stack::Push(int x) { head = new StackElem(x, head); } int Stack::Pop() { int value = head->data; head = head->next; return value; }