Salut,
Ce code est très simple mais j'ai trouvé un problème lors de la compilation :
Le 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 #include<stdio.h> #include<string.h> struct Etudiant {char nom[20]; char pré[30]; int mat; float note; } typedef Etudiant ETUDIANT; void main() { ETUDIANT E; printf("Entrer le nom suivi du prénom"); scanf("%s %s",&E.nom,&E.pr); printf("Entrer le matricule "); scanf("%d",&E.mat); printf("Entrer la note"); scanf("%f",&E.note); }
toujours il signale ces erreurs...
C:\Structure\TD\TD1\test.cpp(5) : error C2018: unknown character '0xe9'
C:\Structure\TD\TD1\test.cpp(9) : error C2146: syntax error : missing ';' before identifier 'ETUDIANT'
C:\Structure\TD\TD1\test.cpp(9) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Aidez moi-svp
Partager