#include #include #include #include using namespace std; //For storing hour and minute as a Time variable struct Time { int hour,min; }; //Structure for flight information. struct Flight { string flNo; string origin, dest; int passCount; Time etd,eta; }; //make sure the input files are in the same folder as your program int main() { ifstream in1; //input stream. Use like cin ofstream out1;//output stream, use like cout in1.open("flights.txt");//Open input file flights.txt if(!in1) //abort program if file could not be opened { cout<<"Error opening input file"<>str; //read the flight number for(int j=0;j>ptr[j].etd.hour>>ptr[j].etd.min>>ptr[j].eta.hour>>ptr[j].eta.min; } } } //print all the records in the output file //You won't see anything printed on the screen, since all output goes to file //Look in file called "data.txt" for output out1<<"FLNO\tORG\tDES\tETD\t\tETA\t\n"; for(int i=0;i