Return

totossa4 -  
fiddy Messages postés 441 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,en court de compilation de mon programme,erreur c return statement with value,in function returning void
Configuration: Windows XP Internet Explorer 7.0
A voir également:
  • Return
  • Zuma return - Télécharger - Jeux vidéo
  • Return to castle wolfenstein patch fr - <a href="https://forums.commentcamarche.net/forum/jeux-video-19">Forum Jeux vidéo</a>
  • Return vba function - <a href="https://forums.commentcamarche.net/forum/vb-vba-267">Forum VB / VBA</a>
  • Wolfenstein - <a href="https://forums.commentcamarche.net/forum/jeux-video-19">Forum Jeux vidéo</a>
  • Return en c - <a href="https://forums.commentcamarche.net/forum/c-266">Forum C</a>

1 réponse

fiddy Messages postés 441 Date d'inscription   Statut Contributeur Dernière intervention   1 847
 
Bonjour,

Je te traduis grosso modo en français le message : return statement with value,in function returning void
Tu utilises return valeur alors que ta fonction est de type void.
Dans une fonction :
void toto(void) {
return 0; //est interdit
}
Si tu veux renvoyer un int, tu devrais mettre comme prototype : int toto(void).

Cdlt
1