Results 1 to 3 of 3

Thread: Using a pause...

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    8

    Using a pause...

    Im a beginning programmer and would like to know what technique/function can I use to "pause"...for instance, I am sending text to a richtext box, but would like to use a pause in between printlines. It would be preferable if this pause could be controlled in a menu option (slow, medium, fast) via a variable, etc..

    What do I use in C++? I know Java has an actual "pause". I don't need anyone to give actual code examples..just point me in a direction. Thanks a lot!

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Try sleep()
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Sleep. And it only is available for windows.

    For straight C/C++ you use a while loop and the time functions.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width