Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
#include<iostream>#include<string>
#include "Stack.h"
#include "Point.h"
using namespace std;
//display program instructions to user
void instructions() {
cout<<"Enter one of the following: \n"
<<" 1 to push\n"
<<" 2 to pop\n"
<<" 3 to end processing\n";
} //end function instructions
//function to test a Stack
template<typename T>
void testList(Stack<T> &listObject, const string &typeName )
{
cout<<"Testing a stack of " <<typeName<<" values\n";
instructions(); //display instructions
int choice; //store user choice
T value; //store input value
do//perform user-selected actions
{
cout<<"?";
cin>>choice;
switch(choice ) {...