"depot M111"
This commit is contained in:
4
appli_A_B/Help
Executable file
4
appli_A_B/Help
Executable file
@ -0,0 +1,4 @@
|
||||
|
||||
Pour produire l'executable appli_A : gcc *A*.c -o appli_A
|
||||
Pour produire l'executable appli_B : gcc *B*.c fichier_A3.c -o appli_B
|
||||
|
BIN
appli_A_B/appli_A
Executable file
BIN
appli_A_B/appli_A
Executable file
Binary file not shown.
20
appli_A_B/appli_A.c
Executable file
20
appli_A_B/appli_A.c
Executable file
@ -0,0 +1,20 @@
|
||||
/// appliA.C
|
||||
#include "fichier_A1.h"
|
||||
#include "fichier_A2.h"
|
||||
#include "fichier_A3.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
int x, y;
|
||||
structA1 A1 = structA1Creation (x, y);
|
||||
|
||||
|
||||
structA2 A2 = structA2Creation (x, y);
|
||||
|
||||
|
||||
structA3 A3 = structA3Creation (x, y);
|
||||
structA1Afficher (A1);
|
||||
structA2Afficher (A2);
|
||||
structA3Afficher (A3);
|
||||
return 0;
|
||||
}
|
BIN
appli_A_B/appli_B
Executable file
BIN
appli_A_B/appli_B
Executable file
Binary file not shown.
20
appli_A_B/appli_B.c
Executable file
20
appli_A_B/appli_B.c
Executable file
@ -0,0 +1,20 @@
|
||||
/// BppliB.C
|
||||
#include "fichier_B1.h"
|
||||
#include "fichier_B2.h"
|
||||
#include "fichier_B3.h"
|
||||
#include "fichier_A3.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
int x, y;
|
||||
structB1 B1 = structB1Creation (x, y);
|
||||
structB2 B2 = structB2Creation (x, y);
|
||||
structB3 B3 = structB3Creation (x, y);
|
||||
structA3 A3 = structA3Creation (x, y);
|
||||
|
||||
structB1Afficher (B1);
|
||||
structB2Afficher (B2);
|
||||
structB3Afficher (B3);
|
||||
structA3Afficher (A3);
|
||||
return 0;
|
||||
}
|
7
appli_A_B/fichier_A1.c
Executable file
7
appli_A_B/fichier_A1.c
Executable file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "fichier_A1.h"
|
||||
structA1 structA1Creation (int x, int y)
|
||||
{ printf ("Execution de structA1Creation\n");}
|
||||
void structA1Afficher (structA1 x)
|
||||
{ printf ("Execution de structA1Afficher\n");}
|
||||
|
9
appli_A_B/fichier_A1.h
Executable file
9
appli_A_B/fichier_A1.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_A1
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA1;
|
||||
structA1 structA1Creation (int x, int y);
|
||||
void structA1Afficher (structA1 x);
|
||||
|
9
appli_A_B/fichier_A2.c
Executable file
9
appli_A_B/fichier_A2.c
Executable file
@ -0,0 +1,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "fichier_A2.h"
|
||||
structA2 structA2Creation (int x, int y)
|
||||
{ printf ("Execution de structA2Creation\n");}
|
||||
void structA2Afficher (structA2 x)
|
||||
{ printf ("Execution de structA2Afficher\n");}
|
||||
|
||||
|
9
appli_A_B/fichier_A2.h
Executable file
9
appli_A_B/fichier_A2.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_A2
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA2;
|
||||
structA2 structA2Creation (int x, int y);
|
||||
void structA2Afficher (structA2 x);
|
||||
|
7
appli_A_B/fichier_A3.c
Executable file
7
appli_A_B/fichier_A3.c
Executable file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "fichier_A3.h"
|
||||
structA3 structA3Creation (int x, int y)
|
||||
{ printf ("Execution de structA3Creation\n");}
|
||||
void structA3Afficher (structA3 x)
|
||||
{ printf ("Execution de structA3Afficher\n");}
|
||||
|
9
appli_A_B/fichier_A3.h
Executable file
9
appli_A_B/fichier_A3.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_A3
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA3;
|
||||
structA3 structA3Creation (int x, int y);
|
||||
void structA3Afficher (structA3 x);
|
||||
|
7
appli_A_B/fichier_B1.c
Executable file
7
appli_A_B/fichier_B1.c
Executable file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "fichier_B1.h"
|
||||
structB1 structB1Creation (int x, int y)
|
||||
{ printf ("Execution de structB1Creation\n");}
|
||||
void structB1Afficher (structB1 x)
|
||||
{ printf ("Execution de structB1Afficher\n");}
|
||||
|
10
appli_A_B/fichier_B1.h
Executable file
10
appli_A_B/fichier_B1.h
Executable file
@ -0,0 +1,10 @@
|
||||
#include "fichier_A1.h"
|
||||
/// Header_B1
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structB1;
|
||||
structB1 structB1Creation (int x, int y);
|
||||
void structB1Afficher (structB1 x);
|
||||
|
9
appli_A_B/fichier_B2.c
Executable file
9
appli_A_B/fichier_B2.c
Executable file
@ -0,0 +1,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "fichier_B2.h"
|
||||
structB2 structB2Creation (int x, int y)
|
||||
{ printf ("Execution de structB2Creation\n");}
|
||||
void structB2Afficher (structB2 x)
|
||||
{ printf ("Execution de structB2Afficher\n");}
|
||||
|
||||
|
9
appli_A_B/fichier_B2.h
Executable file
9
appli_A_B/fichier_B2.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_B2
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structB2;
|
||||
structB2 structB2Creation (int x, int y);
|
||||
void structB2Afficher (structB2 x);
|
||||
|
7
appli_A_B/fichier_B3.c
Executable file
7
appli_A_B/fichier_B3.c
Executable file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "fichier_B3.h"
|
||||
structB3 structB3Creation (int x, int y)
|
||||
{ printf ("Execution de structB3Creation\n");}
|
||||
void structB3Afficher (structB3 x)
|
||||
{ printf ("Execution de structB3Afficher\n");}
|
||||
|
9
appli_A_B/fichier_B3.h
Executable file
9
appli_A_B/fichier_B3.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_B3
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structB3;
|
||||
structB3 structB3Creation (int x, int y);
|
||||
void structB3Afficher (structB3 x);
|
||||
|
Reference in New Issue
Block a user