Pause And Resume Program's O/P - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Pause And Resume Program's O/P

Hi to all of you and Thanks a lod to consider my question.
I am writing one stop clock program and it's working properly when i run it, it gives the o/p as follows
12:23:01
and it works ok. but I want to pause it by pressing some keys and resume it by pressing some keys and if i want to exit then how can i do it. because the o/p doesn't comes to end since time becomes 23:59:59.
so help me and explain it if possible because i am new to c

Comments

  • IDKIDK Posts: 1,784Member
    : Hi to all of you and Thanks a lod to consider my question.
    : I am writing one stop clock program and it's working properly when i run it, it gives the o/p as follows
    : 12:23:01
    : and it works ok. but I want to pause it by pressing some keys and resume it by pressing some keys and if i want to exit then how can i do it. because the o/p doesn't comes to end since time becomes 23:59:59.
    : so help me and explain it if possible because i am new to c
    :
    Add a simple check that checks if the esc key is pressed, then if it is, it will exit.

    Post your code, there's a number of ways of doing this, and how have you done it?

    Happy coding wishes
    the one and only
    [b]Niklas Ulvinge[/b] [white]aka [b]IDK[/b][/white]

Sign In or Register to comment.