View Poll Results: When was the last time you've seen Xterria?

Voters
0. You may not vote on this poll
  • Today

    0 0%
  • Sometime this week

    0 0%
  • err....Sometime the month

    0 0%
  • A long time ago

    0 0%

Thread: err....i 4got how to do two functions...

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    Unhappy err....i 4got how to do two functions...

    Im sorry, i asked alot of times, but i forgot, and i cant find in FAQ's so im asking now:

    what is the function that ables you to do TWO functions at once?

    THANX
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    operating system?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    what?

    Do TWO functions at once???????

    Are you talking about threads?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Unless you have a dual processor system you can not run two functions at the same time. What you can do though is to make it appear that there are two functions running at the same time. Depending on exactly what you are trying to do you can either redesign the code so that it works how it should ( referring to your cant move once bullet shoots problem) or look up at msdn for information about how to use threads. To be honest you are probably not ready for writing multithreaded apps yet so you should look to redesign your code to take away the limitations that you have imposed in it.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to decrypt / encrypt using libgcrypt ? (ARC4)
    By jabka in forum C Programming
    Replies: 6
    Last Post: 04-21-2010, 11:34 PM
  2. Replies: 1
    Last Post: 07-31-2006, 02:57 PM
  3. Array of Global Classes
    By CrymsonSoul in forum C++ Programming
    Replies: 8
    Last Post: 06-05-2006, 12:48 AM
  4. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  5. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM