Question:

C ? How do you get a prgram to perform 2 tasks at once?

by  |  earlier

0 LIKES UnLike

Ex: i want the program to drop balls(*s) from the top and you need to be able to move the "____" back and forth how?

 Tags:

   Report

2 ANSWERS


  1. For something like this you would probably have a function called tick that is basically a driver. Every execution of tick would cycle thru all the objects in existence, update their locations, check for interactions (ball hits paddle, etc) and modify statuses. There'd probably also be code to create new objects periodically as well.


  2. fork()

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.