Pause/slow a screen?

This is a discussion on Pause/slow a screen? within the C++ Programming forums, part of the General Programming Boards category; I am stuck on trying to find the proper function to puase/slow a screen on a application. Any help would ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    3

    Pause/slow a screen?

    I am stuck on trying to find the proper function to puase/slow a screen on a application. Any help would be appreaciated. Written on Borlands C++ enterprise developer. Also I have Dev C++ if you wanna talk that version of C++

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    #include <conio.h>

    ...
    .......

    getch(); //pauses till key is pressed

  3. #3
    Casual Visitor
    Join Date
    Oct 2001
    Posts
    350

    Re: Pause/slow a screen?

    Originally posted by iharringron
    Written on Borlands C++ enterprise developer.
    Does that have a console app :P

    You could use a dummy variable to pause your screen

    char junk;

    show stuff
    cin >> junk

    or use cin.get();
    I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    3
    and if I am trying to merely put in a time wait, like 20 seconds before it goes to next stage, then 10 seconds?

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    Click Here

    edit: pay attention to the threads titled something like sleep();

  6. #6
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    I prefer using getch() or sleep(), unless you care about portability and stuff like that...
    none...

  7. #7
    Registered User
    Join Date
    Feb 2003
    Posts
    3
    hmmm, ok... sleep will proly help me then... just gotta do some searches... thanks for the help

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    417
    Originally posted by iharringron
    hmmm, ok... sleep will proly help me then... just gotta do some searches... thanks for the help
    Sleeping would really help me right now... maybe its a good idea. I'm so tired...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 03:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM

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