lab_quacks
Spiteful Stacks and Questionable Queues
All Classes Namespaces Files Functions
quackfun.cpp File Reference

This is where you will implement the required functions for the stacks and queues portion of the lab. More...

Namespaces

 QuackFun
 Namespace to contain the stack and queue functions for this lab.
 

Functions

template<typename T >
QuackFun::sum (stack< T > &s)
 Sums items in a stack. More...
 
bool QuackFun::isBalanced (queue< char > input)
 Checks whether the given string (stored in a queue) has balanced brackets. More...
 
template<typename T >
void QuackFun::scramble (queue< T > &q)
 Reverses even sized blocks of items in the queue. More...
 

Detailed Description

This is where you will implement the required functions for the stacks and queues portion of the lab.