stack

视频学习https://www.bilibili.com/video/av7970151 stack栈  1.头文件#include<stack> 2.定义方式  stack<int> s1;                     stack<string> s2; 3.基本操作: 入栈,s.push(x) ;把x入栈 先入——后出        后入——先出 出栈,s.pop() ;出栈操作只
相关文章
相关标签/搜索