none
system("PAUSE");

    General discussion

  • hello all,

    1) what does

    system(

    "PAUSE");

    do ??

    2) can programs do without it ?


    Saturday, November 21, 2009 3:27 PM

All replies

  • Just as it says. It causes the execution of your program to pause
    until you hit a key. It keeps the console window open so you can
    look at the output. You don't always need it. You can do a breakpoint
    instead, or use "Run to cursor", or use alternate input methods, or
    run without debugging, etc.

    You easily could have found out what it does by running your program
    both with and without the pause.

    - Wayne
    Saturday, November 21, 2009 3:41 PM
  • Yep. I tried to do that .. I just wanted to know the concept behind it

    << eager beaver  XD


    Thank you

    Tuesday, November 24, 2009 12:12 AM