LANGAGE C++ PB

Fermé
info_net_com Messages postés 26 Date d'inscription dimanche 26 décembre 2010 Statut Membre Dernière intervention 6 juillet 2011 - 1 mai 2011 à 16:53
Char Snipeur Messages postés 9813 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 - 1 mai 2011 à 18:21
Bonjour,
#include <iostream>
#include <fstream>
#include "produit.h"
#include <string>
:using namespace std; /* LE PB EST LA *1>c:\program files\microsoft visual studio 10.0\vc\include\iostream(10): error C2143: syntax error : missing ';'

1>c:\documents and settings\arisoft\my documents\visual studio 2010\projects\11111111111111\11111111111111\main.cpp(5): error C2059: syntax error : ':'*/

before 'namespace'

int main()
{
cout<< "Hello World !" <<endl;
produit *p ;
p = new produit(101,"omo");
cout<<p->id_produit;
delete p ;
getchar();
return 0;
}

j'utilise visual studio 2010
j'ai besoin d'aide


A voir également:

1 réponse

Char Snipeur Messages postés 9813 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 1 298
1 mai 2011 à 18:21
pas de ":" devant le using.
0