📄 global.cpp
字号:
#include "StdAfx.h"
#include ".\global.h"
global::global(void)
{
}
global::~global(void)
{
}
void global::push(string a_n, string c, int a_v, int s_n)
{
attribute *newAttr = new attribute(a_n, c, a_v, s_n);
this->att.push(*newAttr);
}
void global::getTop(attribute &dst)
{
if( att.empty() )
cout<<"ERROE:THE STACK IS EMPTY!!!!!!"<<endl;
dst = att.top();
}
void global::popTop(attribute &dst)
{
if( att.empty() )
cout<<"ERROE:THE STACK IS EMPTY!!!!!!"<<endl;
dst = att.top();
att.pop();
}
void global::clear()
{
while( !att.empty())
att.pop();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -