[C++] AIDEZ MOI

Utilisateur anonyme -  
 Pink Vador -
SALUT

5 réponses

  1. Galsungen Messages postés 6951 Statut Contributeur 1 424
     
    oui mais encore ? quelle est ta question ?

    Gals - Nibelungen
    0
  2. abdel
     
    VOILA JE VEUX APPRENDRE LE C++ . ALORS G START PAR CE QUE VEUX LA COUTUME, G TAPE LES INSTRUCTIONS SUIVANTES :
    #include <iostream>

    int main()
    {
    cout << "Hello World" << endl;
    return 0;
    }

    ET LORSQUE JE LE COMPILE IL TROUVE 70 ERREURS.

    G RI1 COMPRIS

    MERCI PR VOTRE AIDE
    0
    1. P-Lin
       
      Bonjour abdel,
      il fau que tu fasse std::cout et std::endl.
      cout et endl font partie de l'espace de nom standard (std). Si tu ne veux pas taper à chaque fois std::cout et std::endl taper
      #include<ilostream>
      using namespace std;
      et ton prgm marchera

      salut
      0
      1. abdel > P-Lin
         
        MERCI
        0
  3. sebsauvage Messages postés 33284 Date d'inscription   Statut Modérateur Dernière intervention   15 684
     
    Trouvé sur Google:

    // File name: HelloWorld.cpp
    // Purpose:   A simple C++ program which prints "Hello World!" on the screen
    
    #include <iostream>  // need this header file to support the C++ I/O system
    using namespace std; // telling the compiler to use namespace "std",
    		     // where the entire C++ library is declared.
    	
    int main()
    {
            // Print out a sentence on the screen.
            // "<<" causes the expression on its right to 
            // be directed to the device on its left.
            // "cout" is the standard output device -- the screen.
    	cout << "Hello World!" <<  endl;
    	return 0; // returns 0,which indicate the successful	
    		  // termination of the "main" function 
    		     
    }
    


    Je ne l'ai pas testé.
    J'espère que ça t'aidera.
    0
  4. Utilisateur anonyme
     
    MERCI. JE V LE TESTER .
    JE T'EN DIRAI D NVLS.

    @+
    0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. Pink Vador
     
    Dans le mondes des forums
    Ecrire en majuscule = crier
    Et on va croire que tu est en colére...
    0