Thread: Sorting problem with structures and arrays, could I get some guidance?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    12
    Quote Originally Posted by itCbitC View Post
    Do you think that the outer loop will ever be executed given this (in red)?
    Code:
    for (iii = (a - 1); iii >= a; iii--)
    Hmm.. I guess not :0
    Fixed the first bin sorting problem when the red term is set to zero ala the first sort done in the program.....

    Seems the second bin sorting is not as forgiving. I have it printing now but it still is only sort by elevation hmmmm :-/
    Last edited by badtwistofate; 06-10-2009 at 02:38 PM.

  2. #2
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    See my post #3

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with arrays structures sorting.
    By pitifulworm in forum C Programming
    Replies: 42
    Last Post: 02-09-2009, 12:31 PM
  2. Homework problem...structures or arrays?
    By tortan in forum C++ Programming
    Replies: 21
    Last Post: 08-30-2006, 01:26 AM
  3. problem with arrays and structures
    By gell10 in forum C++ Programming
    Replies: 7
    Last Post: 11-03-2003, 12:02 AM
  4. pointers to arrays of structures
    By terryrmcgowan in forum C Programming
    Replies: 1
    Last Post: 06-25-2003, 09:04 AM
  5. Methods for Sorting Structures by Element...
    By Sebastiani in forum C Programming
    Replies: 9
    Last Post: 09-14-2001, 12:59 PM

Tags for this Thread