#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/*******************************************************************************
* List preprocessing directives – you may define your own.
*******************************************************************************/
#define MAX_FLIGHTCODE_LEN 6
#define MAX_CITYCODE_LEN 3
#define MAX_NUM_FLIGHTS 5
#define DB_NAME “database.txt”
/*******************************************************************************
* List structs – you may define struct date and struct studentonly. Each
* struct definition should have only the fields mentioned in theassignment
* description.
*******************************************************************************/
struct date_time
{
int month;
int day;
int hour;
int minute;
};
typedef struct date_time date_time_t;
struct flight
{
char flightcode [MAX_FLIGHTCODE_LEN+1];
date_time_t departure_t;
char arrival_city [MAX_CITYCODE_LEN+1];
date_time_t arrival_t;
};
typedef struct flight flight_t;
int size = 0;
/*******************************************************************************
* Function prototypes – do NOT change the given prototypes. Howeveryou may
* define your own functions if required.
*******************************************************************************/
void print_menu (void);
void make_flight(int counter, flight_t f[]);
int check_flight(int counter, flight_t flights[], charf[MAX_FLIGHTCODE_LEN+1]);
void print_flight(int counter, flight_t flights[], charf[MAX_FLIGHTCODE_LEN+1]);
void print_flights_all(int counter,
PayPal Gateway not configured
PayPal Gateway not configured