Thread: Power Loops

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001

    Power Loops

    Is there any way of retaining the ability to move the cursor around (in a console window) while for example a FOR loop is running ?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Sure, you can place your equivalent of gotoxy inside the loop, but what exactly do you want to do?

    My best code is written with the delete key.

  3. #3
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    just put a 'gotoxy' in your for...loop, so it updated the cursor ever time it goes through the for loop each time

  4. #4
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    The cursor movement is coming from the user,
    that would pause my for loop (waiting for the input)

    I need it the for loop to be "way" in the background,
    like while it's running, allow the user to input a key
    keep looping.

    ....a little tougher now....

  5. #5
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    well this is the similar question going around in the C++ game tread in C++ forum. The problem is running a part of the program when the program is waiting for a input..

  6. #6
    Registered User
    Join Date
    Dec 2001
    A program can't do two things at the same time...

    So you have to use 'Threads', but they are not Standard C++
    Hope you don't mind my bad english, I'm Austrian!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem With My Box
    By HaVoX in forum Tech Board
    Replies: 9
    Last Post: 10-15-2005, 07:38 AM
  2. Determining what power of 2 a number is without loops
    By Sfpiano in forum C++ Programming
    Replies: 4
    Last Post: 07-16-2005, 10:39 AM
  3. Power supplies and demanding processors
    By Liger86 in forum Tech Board
    Replies: 12
    Last Post: 03-17-2005, 11:56 AM
  4. power of 2? without loops or recursion
    By rahuls in forum C Programming
    Replies: 8
    Last Post: 03-20-2003, 05:10 PM