#include<stack>
#include<iostream>
#include"Stack.cpp"
using namespace std;
const int maxstack=30;
enum Error_code{success,overflow,underflow};
typedef int Stack_entry;
class Stack
{bool empty() const;
Error_code copy_stack(Stack&dest,Stack&source);
private:
int count;
Stack_entry[maxstack];
};
bool Stack::copy_stack(Stack&dest,const Stack&source)
{
Error_code outcome=success;
if(0==count)
return underflow;
else if(count>=maxstack)
return overflow;
else
source==dest;
entry[++count]=dest;
return dest;}