Pause execution?

Discussion in 'C++' started by desktop, Sep 28, 2007.

  1. desktop

    desktop Guest

    Is there someway to pause the execution of a program? I have a large
    while loop and before it gets started I would like to pause the program
    so I can see the output before it gets overwritten by the loop.
    desktop, Sep 28, 2007
    #1
    1. Advertising

  2. desktop wrote:
    > Is there someway to pause the execution of a program? I have a large
    > while loop and before it gets started I would like to pause the
    > program so I can see the output before it gets overwritten by the
    > loop.


    Have an input statement there, something like

    { std::string blah;
    std::cout << "pausing, press enter..." << std::flush;
    std::cin >> blah; }

    Next time, please read the FAQ, it's there.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask
    Victor Bazarov, Sep 28, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jason Shohet
    Replies:
    10
    Views:
    1,902
    Kevin Spencer
    Jun 18, 2004
  2. GrantMagic

    pause a loop

    GrantMagic, Jul 28, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,976
  3. Leah

    Pause a web page?

    Leah, Mar 15, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,158
    Steve C. Orr [MVP, MCSD]
    Mar 15, 2006
  4. Keith Carter

    How to pause execution in Ruby?

    Keith Carter, Jan 21, 2008, in forum: Ruby
    Replies:
    3
    Views:
    117
    Jeremy McAnally
    Jan 21, 2008
  5. Noggon
    Replies:
    1
    Views:
    122
    Noggon
    Jun 24, 2006
Loading...

Share This Page