à l’exécution de programme le compilateur affiche un erreur dans le procédure mutation
"a function-definition is not allowed here before '{' token "
" expected `,' or `;' before '{' token "
j’interviens pas a le corriger, aidez moi svp...
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 void mutation(int P[],int E[]) { int N; int i; int a,b,c; for(i=0;i<N;i++) E[i]=P[i]; do { a=random(N); b=random(N); } while (a==b); c=E[a]; E[a]=E[b]; E[b]=c; }
Partager