Pause

This is a discussion on Pause within the C++ Programming forums, part of the General Programming Boards category; I'm writing a casino type program. The welcome is broken down to two lines. I'd like to have the 2nd ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    12

    Talking Pause

    I'm writing a casino type program. The welcome is broken down to two lines. I'd like to have the 2nd line take a 2-3 second pause before appearing. Thanks.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Code:
    #include <windows.h>
    #include <stdio.h>
    int main()
    {
    printf("Hi");
    fflush(stdout);
    Sleep(3000); // 3 seconds
    printf("Bye");
    return 0;
    }
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 09:25 AM
  2. Fork(), pause(), and storing PID's in a linked list
    By vital101 in forum C Programming
    Replies: 10
    Last Post: 09-28-2007, 02:16 AM
  3. Dev-C++ Compile and Run with Pause
    By xmltorrent in forum C++ Programming
    Replies: 12
    Last Post: 03-29-2006, 10:55 PM
  4. pause program at console
    By datainjector in forum C# Programming
    Replies: 1
    Last Post: 03-26-2003, 11:36 PM
  5. Pause function ???
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 09-02-2001, 08:22 PM

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