Hard to explain my issue in the title but, I am trying to understand the clock in terms of c++. A cout statement with endl statement essentially does this
00:00
00:01
00:02
However, if a clock actually did that on our computer we be pretty annoyed so in stead it replaces the particular value with something else. So ideally it only produces one output statement. So how best to implement this idea? I not even sure where to start...
The way I set mine up is essentially the print function takes two pointers which are pointed a separate struct. One struct for keeping tabs on the hours the other tabbing minutes. Then building functions to add to these values (and of coarse resetting when appropriate). Maybe not the most efficient way but I would like the explanation to keep that in context.