[BAEKJOON] 10828번 스택
문 제 소 스 코 드 #include #include constexpr int MAX_SIZE{ 10'000 }; class Stack { private: int m_top; int m_size; int *index; public: Stack() : m_top{ 0 }, m_size{ 0 }, index{ new int[MAX_SIZE] }{} ~Stack() { delete[] index; } void Push(const int&); const int Pop(); int Size() const; bool Empty() const; int Top() const; }; void Stack::Push(const int& n) { index[m_size] = n; ++m_size; m_top = n; } co..