C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

Digital counter

  Asked By: Ameel    Date: Mar 16    Category: C++ Programming    Views: 1517

A digital counter is a bounded counter that turns over when its integer value reaches a certain maximum. Examples include the numbers in a digital clock. Define a class description for bounded counter. Provide the ability to set the maximum and minimum values, to increment the counter, and to return the current counter value. Set the value of zero using constructors. Set the value of maximum and minimum also through the constructor. Also use destructor to destroy the object.