So my instructions are to implement a class that models a tally counter. Whenever the operator pushes a button, the counter value advances by one. Model this operation with a count member function. Use a get_value member function instead. I'm getting an error at line 17 which I don't understand and I'm also getting "statement cannot resolve address of overloaded function" for line 23 and 24. Any help would be really appreciated :) Thanks in advance.
Line 14, you have an extraneous ; at the end of the line.
Line 16, you're trying to return an int, but the function is declared void.
Line 23 & 24, you're trying to call functions, but you're missing the ()
Two other items:
line 24 doesn't do anything. It gets the value of people, ad the result is discarded.
Line 8, you're constructor should initialize people to 0. That's what constructors are for.