You could create a mutator (member function that changes a value) and change it from inside the class....
So:
1 2 3 4
void counterClass::changeOverFlowValue( int newVal )
{
overflowValue = newVal;
}
then call it on the class;
myInstanceclicker.changeOverFlowValue( newval );
Currently, counterClass::counterClass(overflowVal); doesn't do anything except instantiate a new class object and not assign anything with which to reference it...
Thanks for responding, I just saw that the assignment requires me to have two constructors, how would I do to make sure that I have two of them where on is the default and the other one changes the value of the overflow value?