STL 经常使用容器

stack #include <iostream> #include <stack> using namespace std; int main() { stack<int> S; S.push(1); S.push(2); S.pop(); cout << S.empty() << endl; cout << S.size() << endl;
相关文章
相关标签/搜索