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;
相關文章
相關標籤/搜索