Thread: don't know why this work

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    43

    don't know why this work

    tlkj
    Last edited by begginer; 02-26-2011 at 12:06 AM.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What's "the second function"? You call them in the opposite order that you have them defined, and, are you counting the top snipped as a function or not? What function is getting hung up? Also, if it's getting hung up in one function, look at the loops you have going in that function, and there's your answer.


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

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    43
    the first function is main, and all it is the while loop, i forgot to copy the void main, its getting into the second function and never out of it

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Because it would have been hard to just name the function you wanted us to look at, right? Ok, so throw some printf statements in there, and see where it's hanging. You're playing with hardware we don't have, so it's not like we can know what your hardware is doing there. Start printing out flag values as you go through the function so you can see what it's doing.


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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strcmp returning 1...
    By Axel in forum C Programming
    Replies: 12
    Last Post: 09-08-2006, 07:48 PM
  2. getline() don't want to work anymore...
    By mikahell in forum C++ Programming
    Replies: 7
    Last Post: 07-31-2006, 10:50 AM
  3. Why don't the tutorials on this site work on my computer?
    By jsrig88 in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2006, 10:39 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. DLL __cdecl doesnt seem to work?
    By Xei in forum C++ Programming
    Replies: 6
    Last Post: 08-21-2002, 04:36 PM