Concacténer un string et un entier en c++

sky123 Messages postés 42 Date d'inscription   Statut Membre Dernière intervention   -  
 be__good -
Bonjour,
j'aimerais savoir comment concacténer un string et un int en c++.
merci

1 réponse

be__good
 
#include <sstream>

ostringstream nom;
nom << string << int;

Pour obtenir un string : nom.str()
0