STL Container - Container Adapter
stack
#include <stack>구조
멤버 함수
설명
예제
#include <iostream>
#include <stack>
using namespace std;
int main(void){
stack<int> st;
int decimal = 123;
do {
st.push(decimal % 2);
decimal /= 2;
}while(decimal);
while(!st.empty()){
cout << st.top();
st.pop();
}
return 0;
}queue
구조
멤버 함수
설명
예제
priority queue
예제
참조
Last updated