?? chapter5-9.cpp
字號:
//文件名:CHAPTER5-9.cpp
#include <stack>
#include <iostream>
#include <assert.h>
using namespace std;
int main()
{
stack<int> S;
S.push(8);
S.push(7);
S.push(4);
assert(S.size() == 3);
assert(S.top() == 4);
cout<<S.top();
S.pop();
assert(S.top() == 7);
cout<<S.top();
S.pop();
assert(S.top() == 8);
cout<<S.top();
S.pop();
assert(S.empty());
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -