int main()
{
    Counter c = Counter();
    c.SetMin(10);
    c.SetMax(20);
    c.SetName("STACKCOUNTER");
    c.Display();
    return 0;
}
Exemple #2
0
int main(){
	
	char input;
	Counter C;

	cout<<"Please enter the digits (a = 1, s = 10, d = 100, f = 1000, o = overflow): "<<endl;
	do{
    cin >> input;
	C.enter(input);
	C.Display();
	}while (input != 'o');

	cout<<"Overflow Requested. Exiting ..." << endl;
	
	return 0;
}