salut tous le monde

svp j ai un probleme je veus lire une chaie de caractere ds une structure mais ca ne marche pas

voici mon code


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
 
 
#include <stdio.h>
 
struct fiche{
 
    char nom[11];
    char prenom[11];
    int age;
    float note;
};
 
 
void main()
{ struct fiche anis;
 
 
printf("donner votre nom :   ");
scanf("%s",anis.nom);
 
printf("\ndonner votre prenom :   ");
gets(anis.prenom);/* c'est la le prbleme  /*
 
 
printf("\ndonner votre age :  ");
scanf("%i",&anis.age);
 
 
printf("\ndonner votre note  :  ");
scanf("%f",&anis.note);
 
 
/* Affichage de la structure  */
 
printf("\n\n\asalut %s %s vous avez comme age %i et comme note %.3f\n\n\n",anis.nom,anis.prenom,anis.age,anis.note);
}

et merci d'avance

ah une autre chose qui peut m'affrir un cour sur les structure surtous ( langage algorithmique);