Homework 2, A Stack.
Short Description:
Create a stack class.
This assignment is worth 40 points.
Goals
When you finish this homework, you should have:
- Implemented a class that works with dynamic memory.
- Thoroughly tested this class.
- Employed this class to solve a simple problem.
Formal Description
- Implement a stack class.
- You should thoroughly test your stack.
- Provide a word document describing a test plan for testing your stack class.
- Implement your test plan and provide the file(s) that accomplish this.
- Use valgrind to assure you have no memory leaks.
- Implement a solution to The Grand Adventure.
- This should be implemented in a file called grand.cpp or grand.C and should employ your stack class.
Your code must compile on cslab103 with the following compiler flags:
-g -O3 -Wpedantic -Wall -Wextra -Wmisleading-indentation -Wunused -Wuninitialized -Wshadow -Wconversion -D_FORTIFY_SOURCE=2 -std=c++17
Your code must compile without errors or warnings.
Your code must not have memory leaks.
Required Files
A single tar file containing the source code and makefile for this program.
If you do not know how to produce a tar file, or need assistance with your Makefile, please contact me.
Submission
Submit your tar file to the D2L folder Homework 2 by the due date.