stackexam.cpp
来自「堆栈的一点研究」· C++ 代码 · 共 24 行
CPP
24 行
// StackExam.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "SeqStack.h"
#include "IntObject.h"
int main(int argc, char* argv[])
{
CLinkStack s;
s.Push(new CIntObject(1));
s.Push(new CIntObject(2));
s.Push(new CIntObject(3));
s.Push(new CIntObject(4));
delete s.Pop();
s.Push(new CIntObject(5));
s.Push(new CIntObject(6));
s.Push(new CIntObject(7));
s.Print();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?