locked
How to completely end a program if some condition given holds true? RRS feed

  • Question

  • How to completely end a program if some condition given holds true?

    For example if some variable lets say..a is greater than 10 then program should close....

    i.e
    "press any key to continue" message appears.

    solution is
    Use the exit(0) function to terminate the program
    Wednesday, November 14, 2007 10:42 AM

All replies

  • well its known, we use it in C, any way thanks for info...
    Friday, November 23, 2007 9:21 PM