slowing down the output

This is a discussion on slowing down the output within the C Programming forums, part of the General Programming Boards category; hello, i need to slow down the output in a recursive function. but, i have no idea...

  1. #1
    Registered User knoxville's Avatar
    Join Date
    Mar 2005
    Location
    istanbul
    Posts
    13

    slowing down the output

    hello,

    i need to slow down the output in a recursive function. but, i have no idea

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    75
    Try using something like sleep()

  3. #3
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    >> i need to slow down the output in a recursive function. but, i have no idea

    Could you... be more specific... because.. I have no idea

    Better questions get better answers, yours is too vague IMO.
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Use another recursive function to eat up time between outputs!
    Code:
    void fun1( size_t x )
    {
        if( x )
            fun1( x - 1 );
    }
    
    void fun2( size_t y )
    {
         if( y )
        {
            output( y );
            fun1( delay );
            fun2( y - 1 );
        }
    }
    You can never have too much recursion!


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help for my output array
    By qwertysingh in forum C Programming
    Replies: 1
    Last Post: 02-17-2009, 03:08 PM
  2. execl()/fork() output
    By tadams in forum C Programming
    Replies: 19
    Last Post: 02-04-2009, 03:29 PM
  3. Replies: 4
    Last Post: 11-30-2005, 04:44 PM
  4. Formatting output into even columns?
    By Uncle Rico in forum C Programming
    Replies: 2
    Last Post: 08-16-2005, 06:10 PM
  5. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 05:27 AM

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