Thread: i need some help ><

  1. #16
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    main calls SeekRoad

    SeekRoad calls SeekRoad

    Second SeekRoad returns -1 --> No exit!!

    But what will return the first SeekRoad to the main?
    It ignores the value return by the subsequent call to SeekRoad and returns 1

    Road found - but where to?

  2. #17
    Registered User
    Join Date
    Oct 2006
    Posts
    8
    so what does that mean?

  3. #18
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    You should not ignore the return value of your function

    I mean like this

    Code:
    seekRoad(maze, x, y);
             return 1;
    You always return 1 independently of the return value of the seekRoad

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. primitive question ><
    By MicroFiend in forum Game Programming
    Replies: 5
    Last Post: 10-14-2005, 10:14 AM
  2. STEP turbo C 3.0 >< Borland 5.02
    By Huh..... in forum C Programming
    Replies: 0
    Last Post: 03-12-2002, 07:54 AM
  3. searching ><
    By hyaline in forum C Programming
    Replies: 1
    Last Post: 09-16-2001, 05:29 AM