Hello. Once again I am puzzling over the code, but over what they want from me here:
Create a class in orthodox canonical form that displays a mechanical counter. The counter can take values from 0 to 999. The counter has two buttons - “+” and “c”. When you press the "+" button, the counter changes to the following state:
- if its value is from 0 to 998, then the value will increase by one;
- if its value is 999, then its value will become equal to 0.
When the “c” button is pressed, the counter value becomes 0. In the class there should be member functions:
- the constructor with the argument is the initial value;
- function simulating pressing the "+" button;
- a function that simulates pressing the "c" button;
- function that returns the value of the counter.
Functions when receiving invalid arguments should issue a warning. Overload the insertion and streaming operators from the stream so that they extract and insert class objects into streams associated with binary files.
This line is incomprehensible, what they want from me here:
So that they extract and insert class objects into streams associated with binary files.
Well, what is encrypted here?