Question: 1. Use the class stack discussed in the lectures to make a stack class template. Write the methods of the template class in the following


1. Use the class stack discussed in the lectures to make a stack class template. Write the methods of the template class in the following program which uses the string class as the template parameter For marking purposes, run program and push bob, joe and jean onto the stack. Print the stack to the output file then pop twice and print again // File: stacktemplate.cpp // This program implements a stack template class #include #include #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
