Forked from
Walter Rudametkin / projet_se3_2021
11 commits behind, 3 commits ahead of the upstream repository.
-
Léo POUMAER authoredLéo POUMAER authored
main.c 888 B
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct airline
{
char IATA_CODE_AIRLINE[2];
char AIRLINE[30];
};
struct airport
{
char IATA_CODE_AIRPORT[3];
char NAME[80];
char CITY[30];
char STATE[3];
char COUNTRY[3];
float LATITUDE;
float LONGITUDE;
};
struct flight
{
int MONTH;
int DAY;
int WEEKDAY;
char AIRLINE[2];
char ORGAIR[3];
char DEST_AIR[3];
int SCHDED_DEP;
int DEP_DELAY;
float AIR_TIME;
int DIST;
int SCHED_ARR;
float ARR_DELAY;
int DIVERTED;
int CANCELLED;
};
int main ()
{
int q=1;
FILE* fo1;
FILE* fo2;
FILE* fo3;
fo1=fopen("airports.csv","rt");
fo2=fopen("flights.csv","rt");
fo3=fopen("airlines.csv","rt");
if( (fo1 == NULL) || (fo2 == NULL) || (fo3 == NULL) ){
printf("Ouverture des fichiers impossible ! \n" );
exit(0);
}
while (q==1)
{
}
return 0;
}