Please help debug the following program and add code to create amenu driven interface for the user in C++:
// ConsoleApplication1.cpp : This file contains the ‘main’function. Program execution begins and ends there.
//
#include “pch.h”
#include <iostream>
template <typename E> class Stack {
private:
int maxSize;
int top;
E *listArray;
void operator =(const Stack&) {}
Stack(const Stack&) {}
public:
Stack(int size = defaultSize)
{maxSize = size top = 0; listArray = new E[size];}
~Stack() { delete[] listArray; }
virtual void clear() { top = 0; }
virtual void push(const E& it) { Assert(top != maxSize,”Stack is full”); listArray[top++] = it; }
virtual E pop() { Assert(top != 0, “Stack is empty”); returnlistArray[–top]; }
const E& topValue() const {
Assert(top
PayPal Gateway not configured
PayPal Gateway not configured