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)
list_sort
#include<stdio.h> #include<stdlib.h> #include"list.h" void list_sort(list_t* list) { }
CMPT 255 course outline
At the end of CMPT 225 course, a student will be able to: Software Development: convert specifications into high-level design, apply sof...
No comments:
Post a Comment