Où est l'erreur et comment la corriger?
Fermé
Sofi
-
Chris 94 Messages postés 1937 Date d'inscription Statut Modérateur Dernière intervention -
Chris 94 Messages postés 1937 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour,
typedef struct {
int num ;
char sf [11];
} personne ; personne t[10];
.
.
.
.
.
.
.29 switch(c)
30 case 1: t[i].sf='célibataire';
31 break;
.
.
.
.
(build message )
30 error : incompatible types when assigning to type 'char[11]'from type 'int'
typedef struct {
int num ;
char sf [11];
} personne ; personne t[10];
.
.
.
.
.
.
.29 switch(c)
30 case 1: t[i].sf='célibataire';
31 break;
.
.
.
.
(build message )
30 error : incompatible types when assigning to type 'char[11]'from type 'int'
Configuration: Windows / Chrome 79.0.3945.79