lab_quacks
Spiteful Stacks and Questionable Queues
|
Contains the QuackFun namespace definition. More...
Namespaces | |
QuackFun | |
Namespace to contain the stack and queue functions for this lab. | |
Functions | |
template<typename T > | |
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... | |
Contains the QuackFun namespace definition.