Stack (1) 썸네일형 리스트형 Stack 막 구현해보기 https://cplusplus.com/reference/stack/stack/ https://cplusplus.com/reference/stack/stack/ container_typeThe second template parameter (Container)Type of the underlying container cplusplus.com 기능> 1. 생성자 : 기본 생성자만 추가 2. empty() : 현재 스택이 비어있는지 체크하여 Bool 타입 반환 3. size() : 현재 스택에 저장된 데이터의 갯수 Integer 타입 반환 4. top() : 가장 최근에 넣은 데이터 반환 (수정 가능) 5. push() : 스택에 데이터 추가 6. pop() : 스택에서 가장 최근 추가한 데이터 삭제 7. .. 이전 1 다음