using std::stack是什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/02 22:56:01
读程序中看到的 猜测是引用系统里的堆栈?

是使用c++标准命名空间里的stack,就是stl里的stack(你需要包含#include <stack>才可以使用)
使用如下:
#include <stack>
using std::stack;
int main()
{
stack<int> s;
return 0;
}

是STL里的堆栈吧!