help me to arrange acer

Discussion in 'C' started by nayera, Aug 26, 2011.

  1. nayera

    nayera New Member

    Joined:
    Aug 26, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i,m abeginner on c and i wanna do a project i thought about a program of sensor at the end of run competition
    sensor compare between time of lap of each racer
    i will write info of each racer and his lap time and then compare who's the first ,second,third& fourth
    i need help in comparisons how i do it??
     
  2. ankush_urnitemare

    ankush_urnitemare New Member

    Joined:
    Mar 25, 2011
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    u can do it usin if conditions but that would become 2 lenghty..... another good way to do it would be by using a sorting technique in which a given array of nos are arranged in an ascending order n usin dat order u can decide who has come first, second or third n so on.....
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice