Aell's Note
  • Aell's Git

    Aell

    Hi

    • Somewhere

    C++ - STL Stack

    less than 1 minute read

    STL Stack

    • stack

        #include <stack>
        using namespace std;
      	
        stack<int> s;
        s.push(1); // 맨 뒤에 1 추가
        s.push(2); // 맨 뒤에 2 추가
        s.push(3); // 맨 뒤에 3 추가
      
        s.size(); // 3
      	
        s.pop(); // 마지막 요소 제거
      
        s.top(); // 마지막 요소 접근 : 3
      
        s.empty(); // false
      
    • std::stack
    • C++ STL stack 기본 사용법과 예제

    Categories: C++

    Updated: December 29, 2019

    Share on

    Twitter Facebook Google+ LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    Spring Boot - Mybatis Multiple Datasource 연동

    2 minute read

    Spring Boot - Mybatis Multiple Datasource 연동 기본적인 MyBatis 연동 방법은 Spring Boot - Mybatis 연동 참고

    Spring Boot - Mybatis 연동

    2 minute read

    Spring Boot - Mybatis 연동

    Intellij Spring Boot - 프로젝트 생성

    less than 1 minute read

    Spring Boot - 프로젝트 생성 (1)

    Intellij Spring - Controller의 데이터 처리

    2 minute read

    Controller의 데이터 처리

    © 2021 Aell. Powered by Jekyll & Minimal Mistakes.