Bonjour,
Une partie de mon programme (puissance 4 :
Apres avoir compiler mon prgm en gcc un warnig apparait me disant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 unsigned int placerJeton(int numJoueur, unsigned int numCol, unsigned int tabl[TAILLE][TAILLE]) { for(int i=0; i<TAILLE; i++) { if(tabl[TAILLE-1-i][numCol-1] == 0) { tabl[TAILLE-1-i][numCol-1] = numJoueur; return 0; } } }
warning: control may reach end of non-void function [-Wreturn-type]
}
Comment je pourrais résoudre ce problème svp?
Partager