• 个人简介

    #include<bits/stdc++.h>
    using namespace std;
    int main() {
    
       return 0;
    }
    

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    //创建一个栈 
    stack<int> s;
    //入栈
    s.push(888);
    //获取栈顶元素 
    cout<<s.top()<<endl;
    s.push(666);
    cout<<s.top()<<endl;
    s.pop();
    cout<<s.top()<<endl;
    cout<<s.size()<<endl;
    if(s.empty()==1){
    	cout<<"栈为空"<<endl; 
    }else{
    	cout<<"栈不为空"<<endl; 
    }
    return 0;
    

    }

  • 通过的题目

  • 最近活动

题目标签

初窥门径
3
顺序结构
3