Thread: List Pauses -Please help!

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    10

    List Pauses -Please help!

    I am currently writing a programme which creates a list
    of data. The problem is, sometimes there is too much
    data to view in one go.
    Is there a way that i can get the programme to pause
    till the user clicks when the data gets to the end of the
    screen?
    Thank you!

    Toph

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    19
    The problem is, sometimes there is too much data to view in one go.
    this is too general! where is the data printed? give us more information!

    bye
    wudmx

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    10
    Its all being done in a consol window using a
    do loop with a printf statement. The user can
    define how many times the loop should be run.
    Is there anything else that would be helpful
    to know?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Pseudo-code
    for i = 0 ; i < num ; i++
    - print record i
    - if ( (i+1) % 24 == 0 ) do_pause

    Typically, print a message, and wait for a key
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    ... and to actually perform the pause:
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    Registered User
    Join Date
    Jan 2004
    Posts
    10
    Thank you everyone!
    That has all been really helpful and allowed me
    to finally complete this system!
    Have a good day!!!

    Toph

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM