算法c++之stl---stack的详细使用

#include 
using namespace std;

//使用堆栈
stack<int> s; 
int main(){
	//empty()判空 
	//pop() 函数移除堆栈中最顶层元素。
	//push() 函数将 val 值压栈,使其成为栈顶的第一个元素。如:
	//size() 函数返当前堆栈中的元素数目。如:
	return 0; 
} 

你可能感兴趣的:(c++,stl,算法,堆栈,算法,数据结构)