Posted by hussein on July 10, 2000 at 18:49:35:
In Reply to: Pro #1 posted by An on July 10, 2000 at 17:12:10:
: Some how I can sort the list with the new flights from the keyboard!!
you dont need to sort the whole list each time ... if you insert each record into its correct position when doing an "add", you will always have a sorted list.
the way you are currently writing the program isnt wrong, but it isnt efficient. it seems like you simply need to fix your program - see Pete (during his office hours) for suggestions on debugging techniques if necessary.
date and time are not really related to stability. comparing date/time values is equivalent to comparing integers since there is a one-to-one mapping from date/time values to the set of integers ...