#include "count.h" counter::counter(void) { counterValue = 0; } counter::counter(int initV) { counterValue = initV; } void counter::count(void) { counterValue ++; } void counter::unCount(void) { counterValue --; } int counter::counterIs(void) const { return counterValue; } void counter::setCounter(int value) { counterValue = value; }