xpi0t0s's Avatar, Join Date: Aug 2004
"bro", WHAT ARE THE ERRORS? You said there were errors, we can't read your mind or see your screen, so you have to tell us these things.
Programming_Kills's Avatar, Join Date: Jun 2010
Go4Expert Member
Write a C program that reads a file containing information about direct flights connecting a set of
airports. Each line in the file has the following format:
<flight number> <departure airport code> <destination airport code>
where the flight numbers are strings of up to 6 characters and the airport codes are strings of 3
The C program must be able to manage files with a maximum of N different airports, and with any
number of flights. The program must compute and write, for each different airport occurring in the
file, the list of airports that are directly reachable from that airport and the list of airports from
which it can be directly reached.