Posted by Big O on HW 18 on August 08, 2000 at 04:48:46:
In Reply to: Re: Can somebody help me? posted by HR on August 08, 2000 at 01:41:56:
: Never mind I fixed it, but I did find another problem... I used Prof. Suleman's code (because the way I handled data with my proj2, it was better to use his), but I found a bug in his code... if someone can confirm this, I'd appriciate it... (and hopefully, we don't get points taken off for it... for using his code...)
:
: If you would download the project2 from examples, and load file9.txt and file10.txt, you will get some DUPLICATE OUTPUTS!!!!!
: You get something like
: AAA 2 Delayed
: AAA 2 OnTime
: AAA 1 Delayed
: AAA 1 OnTime
: but the correct output SHOULD BE
: AAA 2 Delayed
: AAA 1 Delayed
: ... since no same flight can be both ontime and delayed.... right? ....
I think you have litle problem with your search function. I suggest It should compare or look for
the flight that have both( Airline and FlightNumber). Hope that can help you... BE QUICK
bro. Time is running out.