Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
818 connectés 

  FORUM HardWare.fr
  Programmation
  C

  problème avec mes IDE

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

problème avec mes IDE

n°2198906
anisVR6
ayli ayli wel ghani rebi
Posté le 27-07-2013 à 13:28:14  profilanswer
 

Bonjour
j'ai un petit problème je ne sais pas si c'est mon code ou mon compilateur
dans les deux cas le programme ne se lance pas
le log sous visuel studio

Code :
  1. 1>------ Début de la génération : Projet : test, Configuration : Debug Win32 ------
  2. 1>  main.c
  3. 1>c:\users\anis\documents\visual studio 2010\projects\test\test\main.c(11): warning C4013: 'print' non défini(e) ; extern retournant int pris par défaut
  4. 1>c:\users\anis\documents\visual studio 2010\projects\test\test\main.c(12): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  5. 1>          c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : voir la déclaration de 'scanf'
  6. 1>c:\users\anis\documents\visual studio 2010\projects\test\test\main.c(19): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  7. 1>          c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : voir la déclaration de 'scanf'
  8. 1>main.obj : error LNK2019: symbole externe non résolu _print référencé dans la fonction _main
  9. 1>C:\Users\Anis\documents\visual studio 2010\Projects\test\Debug\test.exe : fatal error LNK1120: 1 externes non résolus
  10. ========== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ==========


sous code blocks

Code :
  1. C:\Users\Anis\Desktop\main.o:main.c|| undefined reference to `print'|
  2. ||=== Build finished: 1 errors, 0 warnings (0 minutes, 1 seconds) ===|


mon code

Code :
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<time.h>
  4. int main ( int argc, char** argv )
  5. {
  6. const int MIN = 1, MAX = 100;
  7. int nombremystere,nombre,cpt;
  8. nombremystere = 0;
  9. nombre=0;
  10. cpt=0;
  11. print("Joueur 1 entrer le nombre mystere entre\n" );
  12. scanf("%d",&nombremystere);
  13. printf("maintenan au joueur  2 de jouer\n" );
  14. // Recherche du nombre
  15. do
  16. {
  17.  printf(" Entrer un nuombre ompris entre 1 et 100: \n" );
  18.  scanf("%d", &nombre);
  19.  cpt=cpt+1;
  20.         if(nombremystere>nombre)
  21.  printf("zid chuia!\n\n" );
  22.  else if(nombremystere<nombre)
  23.  printf("nekess yaw!\n\n" );
  24.  else
  25.  printf("hadik hiya rak sebtha! en %d coups\n\n",cpt);
  26.     }while(nombre != nombremystere);
  27. }

mood
Publicité
Posté le 27-07-2013 à 13:28:14  profilanswer
 

n°2198911
gilou
Modérateur
Modzilla
Posté le 27-07-2013 à 14:35:35  profilanswer
 

Citation :

c:\users\anis\documents\visual studio 2010\projects\test\test\main.c(11)


On va voir ligne 11

Citation :

print("Joueur 1 entrer le nombre mystere entre\n" );


et on trouve un print au lieu d'un printf.
CQFD.
A+,


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2198939
anisVR6
ayli ayli wel ghani rebi
Posté le 28-07-2013 à 19:29:54  profilanswer
 

[:aaaaze:1]  merci  
j'ai pas trop l'habitude avec le debuger de visuel studio


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C

  problème avec mes IDE

 

Sujets relatifs
Probleme page flexibleProbleme connexion PHP
Problème dans mon where...Problème opencv - fonction findContours
Probleme macro excellproblème recherche multi critère
[Python] Problème .find dans un .txtProbléme GMP
[eclipse] probleme avec un plugin (IDE OpenLaszlo)Problème Internationalisation IDE
Plus de sujets relatifs à : problème avec mes IDE


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR