help

This is a discussion on help within the C++ Programming forums, part of the General Programming Boards category; how can make to instructions simultaneously run example: in main() how can i make two functions example movescreen() and moveship ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    help

    how can make to instructions simultaneously run example:

    in main() how can i make two functions example movescreen() and moveship run at the same time...

    thanks )

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094

  3. #3
    Registered User SKeane's Avatar
    Join Date
    Sep 2006
    Location
    England
    Posts
    234
    google pthread

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    If
    movescreen();
    moveship();

    take less than your screen refresh time, how would the user ever know?

    Get thread programming wrong and you'll have one hell of a bug-fest on your hands.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

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