Like Tree1Likes

Help working with array of structures!

This is a discussion on Help working with array of structures! within the C Programming forums, part of the General Programming Boards category; Because you inadvertently fixed the problem while making the change from float to int No! I'm sure I didn't even ...

  1. #16
    Registered User black_stallion's Avatar
    Join Date
    Aug 2011
    Location
    India
    Posts
    22
    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
    Posts
    52
    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....

Page 2 of 2 FirstFirst 12
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, 06:24 PM
  2. working with pointers to structures
    By Delia in forum C Programming
    Replies: 2
    Last Post: 03-21-2010, 06:23 PM
  3. Structures, passing array of structures to function
    By saahmed in forum C Programming
    Replies: 10
    Last Post: 04-06-2006, 12:06 AM
  4. 2 Dimenstional Array vs Array of Structures
    By jrahhali in forum C++ Programming
    Replies: 2
    Last Post: 04-11-2004, 05:51 AM
  5. Working with arrays of structures, need advice...
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 08-14-2002, 09:38 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21