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
Compare revisions
master to 0ed77deb632206083ddd770c08a1aa4f5dfa6ab5
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
niels.godbert.etu/projet_se3_2021
Select target project
No results found
0ed77deb632206083ddd770c08a1aa4f5dfa6ab5
Select Git revision
Branches
master
1 result
Swap
Target
walter.rudametkin/projet_se3_2021
Select target project
thibault.meynier.etu/projet_se3_2021
Walter.Rudametkin1/projet_se3_2021
paul.gallot/projet_se3_2021
tom.carrere.etu/projet_se3_2021
mohamed.bennani.etu/projet_se3_2021
antoine.brossas.etu/projet_se3_2021
haitam.blgrim.etu/projet_se3_2021
flavie.henry.etu/projet_se3_2021
heloise.lacroix.etu/projet_se3_2021
arthur.vain.etu/projet_se3_2021
aymen.baccar.etu/projet_se3_2021
loic.bal.etu/projet_se3_2021
maxence.laurent.etu/projet_se3_2021
victor.blondelle.etu/projet_se3_2021
florian.prin.etu/projet_se3_2021
tristan.payen.etu/projet_se3_2021
simon.douteau.etu/projet_se3_2021
florian.vallee2.etu/projet_se3_2021
niels.godbert.etu/projet_se3_2021
sami.aggar.etu/projet_se3_2021
vincent.aranega/projet_se3_2021
walter.rudametkin/projet_se3_2021
22 results
master
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
upload 1st main.c
· b45c5505
GODBERT Niels
authored
4 years ago
b45c5505
Mise a jour du main avec l'ajout des sd et des fic
· f2426ba4
Léo POUMAER
authored
4 years ago
f2426ba4
MAJ
· 0ed77deb
Léo POUMAER
authored
4 years ago
0ed77deb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+21
-0
21 additions, 0 deletions
Makefile
main.c
+75
-0
75 additions, 0 deletions
main.c
with
96 additions
and
0 deletions
Makefile
0 → 100644
View file @
0ed77deb
TARGET
=
project
CFLAGS
=
-g
-W
-Wall
-Wextra
-MMD
LDFLAGS
=
-lm
SRC
=
$(
wildcard
*
.c
)
DEPS
=
$(
SRC:.c
=
.d
)
OBJ
=
$(
SRC:.c
=
.o
)
default
:
$(TARGET)
.c.o
:
gcc
$(
CFLAGS
)
-c
$<
$(TARGET)
:
$(OBJ)
gcc
$(
LDFLAGS
)
$^
-o
$@
-include
$(DEPS)
.PHONY
:
clean
clean
:
rm
-f
*
.o
rm
-f
$(
TARGET
)
This diff is collapsed.
Click to expand it.
main.c
0 → 100644
View file @
0ed77deb
#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
;
}
This diff is collapsed.
Click to expand it.