sqStack.cpp
//
// Created by 63400 on 2021/10/30.
//
#include <istream>
using namespace std;
#include "Stack.h"
int main(){
Stack s1(2);
char ch;
try{
s1.push('a');
s1.push('b');
s1.push('c');
}
catch(Stack::Full){
cout << "Stack Full!"<<endl;
}
try{
ch = s1.pop();
cout << ch <<endl;
ch = s1.pop();
cout << ch <<endl;
ch