Bonjour,
lorsque j'ecris :
std::cin>>une_string;
VC++ me dit :
Pourquoi ?Citation:
error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
Merci
Version imprimable
Bonjour,
lorsque j'ecris :
std::cin>>une_string;
VC++ me dit :
Pourquoi ?Citation:
error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
Merci
Euh à tout hasard il te manque des inclusions. As-tu ajouté
Au début de ton programme ?Code:#include <string>
Si tu utilises Visual C++ 6 ça pourrait être un bug, j'ai vaguement souvenir d'un truc de ce genre.
Effectivement, c'etait ca. :oops:Citation:
Envoyé par Fiquet
Non non. Cela marchait très bien.Citation:
Envoyé par Laurent Gomila
Par contre, std::string et ::*stream refusaient de s'adresser la parole.