Simple data structures implementation for a college assignment.
The libraries are generic. For example, to create a string stack with the max size of 5, do the following:
Stack<string> strStack = Stack<string>(5);
Note that you need to add explicit type compilation at the end of the library source and your code.
// Explicit instantiations of all the templates used in the file
template
class Stack<std::string>;
A very simple C++ Stack Library implementation.
The stdout output from stackdemo executable is:
A very simple C++ Queue Library implementation.
The stdout output from queuedemo executable is:
A very simple C++ List Library implementation.
The stdout output from listdemo executable is: