Thread: Help working with array of structures!

  1. #16
    Registered User black_stallion's Avatar
    Join Date
    Aug 2011
    Because you inadvertently fixed the problem while making the change from float to int
    No! I'm sure I didn't even touch anything else apart from changing float to int for that variable.(I mean, I 've tried doing every permutation to get to the bottom of this when I finally came at this float thing. Of course it bugs me as to why C should care whether I use float or int as long as I use it correctly!

  2. #17
    Registered User
    Join Date
    Feb 2011
    So u mean to say ur sorting algo is right? And just changing the <b>float</b> to <b>int</b> has solved ur problem, which is Logically Illogical!!!
    Also do specify what did u mean by 'undesirable result'.

    Check with different sets of inputs....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help working with functions, structures, and arrays
    By leway in forum C Programming
    Replies: 3
    Last Post: 05-09-2010, 05:24 PM
  2. working with pointers to structures
    By Delia in forum C Programming
    Replies: 2
    Last Post: 03-21-2010, 05:23 PM
  3. Structures, passing array of structures to function
    By saahmed in forum C Programming
    Replies: 10
    Last Post: 04-05-2006, 11:06 PM
  4. 2 Dimenstional Array vs Array of Structures
    By jrahhali in forum C++ Programming
    Replies: 2
    Last Post: 04-11-2004, 04:51 AM
  5. Working with arrays of structures, need advice...
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 08-14-2002, 08:38 AM

Tags for this Thread