Im creating a program based on a phonebox in c++. The program allows the user to select between local or long distance or international calls. It then asks the user to select the type of coins they are entering, i.e. 10 p, then how many coins they are entering, i.e. 5. A calculation will be performed to give the number of seconds the user has of call time (10*5).
Im wondering how to use a sleep function, or if there is any other way to make the seconds count down, to simulate a call, but also place on the screen approxx every 10 seconds, how long the user has left of call time.