Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projet_se3_2021
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Niels Godbert
projet_se3_2021
Commits
f2426ba4
Commit
f2426ba4
authored
4 years ago
by
Léo POUMAER
Browse files
Options
Downloads
Patches
Plain Diff
Mise a jour du main avec l'ajout des sd et des fic
parent
b45c5505
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.c
+50
-2
50 additions, 2 deletions
main.c
with
50 additions
and
2 deletions
main.c
+
50
−
2
View file @
f2426ba4
#include
<stdio.h>
#include
<string.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
;
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
)
{
...
...
@@ -16,7 +63,8 @@ int main ()
}
}
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment