?? main.cpp
字號:
#include <stack>
#include <list>
#include <iostream>
#define STACK_SIZE 100 //堆棧最大容量
int main(void){
using namespace std;
stack<int, list<int> > s; //用雙向鏈表做堆棧的底層結構
if(s.size() < STACK_SIZE)
s.push(68);
if(s.size() < STACK_SIZE)
s.push(1);
if(s.size() < STACK_SIZE)
s.push(17);
//
while(!s.empty()){
cout << s.top() << endl;
s.pop();
}
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -