📄 a2_2.cpp
字号:
// A2_2.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "stack.h"
#include <iostream.h>
#include <conio.h>
int main(int argc, char* argv[])
{
stack s(10);
try{
s.pop();
for(int i = 0; i < 20; i++){
s.push(i);
}
s.print();
}
catch(stackexpt e){
cout << "exception: " << e.get_content() << endl;
}
getch();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -