CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourHigh-Tech
    • Actus High-Tech
    • Hardware
    • Smartphones
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • High-Tech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

[Code::Blocks]Problème fonction

terapty
terapty
Niveau 9
26 juillet 2009 à 19:39:48

Bon c'est pas vraiment un problème(je dirais même que ça m'arrange)mais quand j'écris une fonction après la fonction main,la fonction main arrive à réutiliser cette fonction dans le programme alors que je n'ai pas créé de fichiers header dans lequel j'ai introduit un prototype.D'ailleurs,je n'ai pas non plus mis de prototypes dans le fichier source.(main.c)

Ma question:comment y arrive-t-il?(attention je suis débutant,donc pas trop de langage compliqué,svp :s)

terapty
terapty
Niveau 9
27 juillet 2009 à 00:39:56

bon ben maintenant j'ai un autre problème:quand je compile et j'exécute,(build and run)la fonction main ne marche pas et j'obtiens le message d'erreur suivant dans mon debugger:multiple definition of '_main'.et first defined here

terapty
terapty
Niveau 9
27 juillet 2009 à 00:40:51

non,c'est bon j'ai résolu le problème.

godrik
godrik
Niveau 30
27 juillet 2009 à 18:07:09

on ne up pas 2 fois en une journee.
kick.

Sous forums
  • Aide à l'achat Mac
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment