Calico
Saturday, July 29, 2017
stack.cpp
#include"stack.h"
Stack::Stack()
{
LinkedList* list = new LinkedList();
}
Stack::~Stack()
{
removeAll();
}
int Stack::empty()
{
return list->empty();
}
void Stack::push(int num)
{
list->prepend(num);
}
int Stack::pop()
{
return list->removeHead();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
imgops
/* * imageops.c - Simple operations on images * * C laboratory exercises. * Richard Vaughan, 2014. */ #include <assert.h> ...
Lab 3: Tasks 1-3
/* * imageops.c - Simple operations on images * * C laboratory exercises. * Richard Vaughan, 2014. */ #include <assert.h> #includ...
No comments:
Post a Comment