#include // 05_main.cpp
#include"05.h"
using namespace std;
int main() {
MyIntStack a; // MyIntStack 타입의 a 생성
for (int i = 0; i < 11; i++) {
if (a.push(i)) cout << i << ' '; // 넣을 수 있다면 넣기
else cout << endl << i + 1 << " 번째 stack full" << endl; // full일 경우
}
int n;
for (int i = 0; i < 11; i++) {
if (a.pop(n)) cout << n << ' '; // 자료가 남아 있다면 pop
else cout << endl << i + 1 << " 번째 stack empty"; // 없다면 empty
}
cout << endl;
}