c++中STL经常使用的数据结构

一.stack(栈) 常见的操做: #include <bits/stdc++.h> using namespace std; int main() { stack<int> S; S.push(3); S.push(10); S.push(100); cout<<S.size()<<endl; S.pop(); cout<<S.top(
相关文章
相关标签/搜索