</note>

  • 홈
  • 태그
  • 방명록

전체 글 41

[STL] Stack

template class _stack{ private: T* ele; int _top, cap; public: _stack():_top(0), cap(2){ ele = new T[cap]; } ~_stack(){ delete[] ele; } void resize(int ncap){ cap = ncap; T* tmp = new T[cap]; for(int i = 0; i < _top; i++) tmp[i] = ele[i]; delete[] ele; ele = tmp; } int full(){return _top == cap;} int empty(){return _top == 0;} int size(){return _top;} void push(T e){ if(full()) resize(cap * 2); ..

ComputerScience/STL 2019.04.10
1 2 3 4 5
더보기
프로필사진

  • 분류 전체보기 (41)
    • Paper (1)
    • ComputerScience (40)
      • STL (4)
      • Algorithm (6)
      • PS (5)
      • Android (2)
      • Docker (15)
      • JavaScript (3)
      • React (3)
      • Vue (1)

Tag

docker, NPM, android, debounce, Promise패턴, CS, CallbackHell, Karatsuba, BOJ, PS, FolatingActionButton, JavaScript, stl, FolatingActionMenu, ES6, Vector Asset, Algorithm, CustomFloatingActionButton, stopsignal, dockerfile,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/10   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Daum Corp. All rights reserved.

티스토리툴바