C++ question: help

Discussion in 'OT Technology' started by dArKwIng., Apr 22, 2004.

  1. dArKwIng.

    dArKwIng. Guest

    i want to pause in a loop and display "press key to continue"

    anyone know the statement to pause & header if needed?
     
  2. RotorBalls

    RotorBalls Gonz

    Joined:
    Sep 8, 2000
    Messages:
    47,410
    Likes Received:
    19
    Location:
    RBWH
    break;
    cout<<"press key to continue";

    :rofl: I'm sure this isn't right, it's been 4 years since I've taken c++ :big grin: Sorry don't know how to program this shit
     
  3. Scoob_13

    Scoob_13 Anything is possible, but the odds are astronomica

    Joined:
    Oct 5, 2001
    Messages:
    73,781
    Likes Received:
    38
    Location:
    Fort Worth. Hooray cowgirls.
    Well, you can prompt for a single character and it will sit at a prompt until they enter a character and press Enter.

    Did you want it fancier than that, or for the whole code?
     
  4. Blindsight

    Blindsight Guest

    #include <conio.h>

    getch();

    viola
     

Share This Page