⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.cpp

📁 一门课程的proj
💻 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 + -