#ifndef _LLAMANODE_CPP_ #define _LLAMANODE_CPP_ /* File: LlamaNode.cpp UMBC CMSC 341 Fall 2016 Project 1 This file has the implementations of the LlamaNode class for Project 1. See project description for details. This file should not be modified in ANY way. When your program is graded, it will be compiled with the original version of this file. Your program must work with the original. */ #include #include "LlamaNode.h" using namespace std ; // Static variables template int LlamaNode::newCount = 0 ; template int LlamaNode::deleteCount = 0 ; template LlamaNode::LlamaNode() { m_next = NULL ; newCount++ ; } template LlamaNode::~LlamaNode() { m_next = NULL ; deleteCount++ ; } template void LlamaNode::report() { cerr << "# of nodes created = " << LlamaNode::newCount << endl ; cerr << "# of nodes destroyed = " << LlamaNode::deleteCount << endl ; } #endif