[C++] AIDEZ MOI

SALUT

5 réponses

  1. Contributeur
    oui mais encore ? quelle est ta question ?

    Gals - Nibelungen
    0
    1. 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. 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
      2. @P-LinMERCI
        0
    2. Modérateur
      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
      1. MERCI. JE V LE TESTER .
        JE T'EN DIRAI D NVLS.

        @+
        0
        1. Dans le mondes des forums
          Ecrire en majuscule = crier
          Et on va croire que tu est en colére...
          0