stack容器中的常用操作有:
stack<int>s;
push(num);
pop();
top();
size();
empty();
小例子:
#include<iostream>
#include<stack>
using
int
{
}
stack容器中的常用操作有:
stack<int>s;
push(num);
pop();
top();
size();
empty();
小例子:
#include<iostream>
#include<stack>
using
int
{
}