typedef int ItemType;
class StackType{

	private:
		ItemType data[MAX_SIZE];
		int top;
		
	public:
		StackType();
		void push(Itemtype value);
		Itemtype pop();
		
		int size() const;
		bool isFull() const;
		bool isEmpty() const;
		// const가 붙으면 멤버변수 수정 불가
}

KakaoTalk_20240416_214303369.jpg

Pointer

Memory Allocation Types

KakaoTalk_20240416_213948163.jpg