Example #1
0
/// \fn add element
void stack::add(string namefunction) 
{
	if (next == nullptr)
		if (data != "") 
		{
			next = new stack();
		}
		else 
		{
			data = namefunction;
			return;
		}
		next->add(data);
		data = namefunction;
}