Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need to finish off this program by doing the following... Write a member funct

ID: 3618918 • Letter: I

Question

I need to finish off this program by doing the following...

Write a member function full() for the Stack class that returnstrue or false, according to whether or not the array used to storethe stack elements if full....

Here is the code I have done so far and any help is greatlyappreciated...

#include <iostream>
#ifdef DSTACK
#define DSTACK

typedef int StackElement;

class Stack
{
public:
   /******Function Members*****/

   Stack (intnumElements = 128;
  
   Stack (const Stack & original);

   ~Stack();

   Stack & operator = (const Stack &original);

   bool empty() const;

   void push (const StackElement & value);

   void display(ostream & out) const;

   StackElement top() const;

   void pop();

private:
   /*****Data Members*****/
   int myCapacity,
       myTop;
   StackElement * myArray
}; //end of class declaration

#endif


Explanation / Answer

Can someone please take a look at this I have a deadline thisevening and completely lost?