"depot M111"
This commit is contained in:
15
Projets_A_B_C/appli_A.c
Executable file
15
Projets_A_B_C/appli_A.c
Executable file
@ -0,0 +1,15 @@
|
||||
/// appliA.C
|
||||
|
||||
int main()
|
||||
{
|
||||
int x, y;
|
||||
structA1 A1 = structA1Creation (x, y);
|
||||
structA1Afficher (structA1 A2);
|
||||
|
||||
structA1 A2 = structA2Creation (x, y);
|
||||
structA2Afficher (A2);
|
||||
|
||||
structA1 A3 = structA3Creation ( x, y);
|
||||
structA3Afficher (A3);
|
||||
return 0;
|
||||
}
|
21
Projets_A_B_C/fichier_A1.c
Executable file
21
Projets_A_B_C/fichier_A1.c
Executable file
@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include "header_A1.h"
|
||||
structA1 structA1Creation (int x, int y)
|
||||
{ printf ("Execution de structA1Creation"\n}
|
||||
void structA1Afficher (structA1 x)
|
||||
{ printf ("Execution de structA1Afficher"\n}
|
||||
|
||||
#include <stdio.h>
|
||||
#include "header_A2.h"
|
||||
structA1 structA2Creation (int x, int y)
|
||||
{ printf ("Execution de structA2Creation"\n}
|
||||
void structA2Afficher (structA1 x)
|
||||
{ printf ("Execution de structA2Afficher"\n}
|
||||
|
||||
#include <stdio.h>
|
||||
#include "header_A3.h"
|
||||
structA1 structA3Creation (int x, int y)
|
||||
{ printf ("Execution de structA3Creation"\n}
|
||||
void structA3Afficher (structA3 x)
|
||||
{ printf ("Execution de structA3Afficher"\n}
|
||||
|
26
Projets_A_B_C/fichier_A1.h
Executable file
26
Projets_A_B_C/fichier_A1.h
Executable file
@ -0,0 +1,26 @@
|
||||
/// Header_A1
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA1;
|
||||
structA1 structA1Creation (int x, int y);
|
||||
void structA1Afficher (structA1 x);
|
||||
|
||||
/// Header_A2
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA2;
|
||||
structA2 structA2Creation (int x, int y);
|
||||
void structA2Afficher (structA1 x);
|
||||
|
||||
/// Header_A3
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA3;
|
||||
structA3 structA3Creation (int x, int y);
|
||||
void structA3Afficher (structA3 x);
|
Reference in New Issue
Block a user