// Header code for stack // requesting to create source codeusing C++
#ifndef Stack_h
#define Stack_h
#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;
class Stack
{
public:
Stack();
~Stack();
bool empty();
string top();
void push(const string&val);
void pop();
void display(ostream&out);
private:
class Node
{
public:
string word;
Node *next;
};
Node *tos;
};
#endif
Header file provided above. PLS create source code for functionsdeclared in the header. If changes are need no make in the headerfile, pls provide the code. For this project, it has to be linkedlist method using pointers, not array method stack. Please providecodes clearly.
Stack::Stack()
{
//create a constructor according to header file
}
Stack::~Stack()
{
//create a destructor according to header file
}
bool empty()
{
//Check if the stack is empty using Linked list method withpointers (!!not array type)
}
string top()
{
//Read
PayPal Gateway not configured
PayPal Gateway not configured