Skip to content
Snippets Groups Projects
Commit 0ed77deb authored by Léo POUMAER's avatar Léo POUMAER
Browse files

MAJ

parent f2426ba4
No related branches found
No related tags found
No related merge requests found
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
struct airline struct airline
{ {
...@@ -43,13 +44,17 @@ struct flight ...@@ -43,13 +44,17 @@ struct flight
int main () int main ()
{ {
int q=1; int q=1;
FILE* fo1;
FILE* fo2;
FILE* fo3;
fo1=fopen("airports.csv","rt")
fo2=fopen("flights.csv","rt") fo1=fopen("airports.csv","rt");
fo3=fopen("airlines.csv","rt") fo2=fopen("flights.csv","rt");
fo3=fopen("airlines.csv","rt");
if( (fo1 == NULL) || (fo2 == NULL) || (fo3 == NULL) ){ if( (fo1 == NULL) || (fo2 == NULL) || (fo3 == NULL) ){
printf("Ouverture des fichiers impossible ! \n", ); printf("Ouverture des fichiers impossible ! \n" );
exit(0); exit(0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment