bonsoir, voila sa fait depuis un petit moment que j'essaye de compiler mon programme.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
# define NB 4
 
 
 
 
main()
{
      float SerieX[NB] ;
      float SerieY[NB] ; 
      int i, j , n; 
      float Xm, Ym ; /* récup les moyennes */
 
      printf("Bonjour, vous allez entrer dans un programme qui trouve s'il ya un rapport entre les val X et Y \n");
 
 
      for(i=0; i< NB; i++)
      {
                printf("entrer la val num %d \n",i);
                scanf("%f", &SerieX[i]) ;               
      }
 
      for(j=0; j< NB; j++)
      {
                printf("entrer la val num %d \n",j);
                scanf("%f", &SerieY[j]) ;               
      }
 
    printf("-------------------------------------------------\n");  
 
 
/* Calcul de la moyen des série */
   Xm = moyen( &SerieX ) ; 
   Ym = moyen( &SerieY) ; 
/*    
   moyen( &SerieX) ; 
   moyen( &SerieY) ; 
   */
   printf("la moyen de la 1er serie est de %d \n", Xm); 
   printf("la moyen de la 2emme serie est de %d \n", Ym); 
 
 
 system("PAUSE");      
}
 
float moyen  ( float tab[] )
{
      float som = 0 ;
      float res = 0;
      int i ;
 
      for ( i = 0 ; i<NB; i++)
      {
         som = som + tab[i];      
      }
 
      res = som / i ;
 
    return res ; 
}
 
float equarT( float a)
{
      float res ; 
 
      res = sqrt(a) ;
 
      return res ;
 
 
}
 
int var ( float * tab )
{
    float som = 0 ;
    float res ;
    int i ;
    for(i =0 ; i <NB ; i++)
    {
          som = som + ( tab[i] - moyen(&tab) ) ;
    }                
 
    res = (1 /NB) * ( som) ;     
 
    return res ; 
 
}
 
float covar( float * tab1 , float * tab2 )
{
      float som = 0 ;
      float res ;
      int i ;
 
      for( i =0 ; i<NB ; i++ )
      {
           som = som +(  ( tab1[i] - moyen(&tab1)) * ( tab2[i] - moyen(&tab2) )  ) ;
      }
      res = (1 /NB) * ( som) ;     
 
      return res ; 
}
 
void app ( float *tab1, float *tab2, float x , float y  )
{
      float resu ;
 
      resu = covar( & tab1 , & tab2)  / ( equarT(x) * equarT(y) ) ;
 
      if( resu <= 1)
          printf("c'est lineaire, donc resultat theorique \n");
 
      else if ( (resu <1)  && (resu > 0,8)) 
          printf("L'alignement lieaire se justifie, ou on parle de regression affine \n");
 
      else if( (resu >1) && (resu < 0,8 )) 
           printf(" n'a pas de sens \n") ; 
}
conflicting types for 'moyen' 35
previous implicit declaration of 'moyen' was here

je ne comprends pas le probléme, j'ai tourné dans tous les sens sans résultats ?