system("PAUSE");

This is a discussion on system("PAUSE"); within the C++ Programming forums, part of the General Programming Boards category; is there a certain library u need to include when using system("PAUSE"); if not where exactly do i place it. ...

  1. #1
    RPG++
    Guest

    system("PAUSE");

    is there a certain library u need to include when using system("PAUSE");

    if not where exactly do i place it. 1,2 or 3?

    1. system("PAUSE");

    return0;
    2. system("PAUSE");
    }

    3. system("PAUSE");

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    the header file is stdlib.h

  3. #3
    Ruski
    Guest

    Re: system("PAUSE");

    Originally posted by RPG++
    is there a certain library u need to include when using system("PAUSE");

    if not where exactly do i place it. 1,2 or 3?

    1. system("PAUSE");

    return0;
    2. system("PAUSE");
    }

    3. system("PAUSE");
    hmm... 123?? not exactly. But i know a syntax like this:
    [code]
    int main()
    {
    cout << "Hello World!";
    system("PAUSE");
    return 0;
    }
    [code]

  4. #4
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    That was me actaully
    Code:
    int main()
    {
    cout << "Hello World!";
    system("PAUSE");
    return 0;
    }
    what does signature stand for?

  5. #5
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    you can use it whenever you need it, but depending on the compiler and target OS, it's usually recommended to use functions like sleep (int), delay (long), etc...
    hasafraggin shizigishin oppashigger...

  6. #6
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    I like Sleep(...)

    Its in windows.h if you're interested, but is therefore platform specific
    Couldn't think of anything interesting, cool or funny - sorry.

  7. #7
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    I like CLS
    what does signature stand for?

  8. #8
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    Originally posted by endo
    I like Sleep(...)

    Its in windows.h if you're interested, but is therefore platform specific
    And _sleep(unsigned long) is in stdlib.h

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21