Posted by HR on August 08, 2000 at 01:41:56:
In Reply to: Can somebody help me? posted by HR on August 08, 2000 at 01:18:13:
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? ....