Concacténer un string et un entier en c++ sky123 - Dernière réponse le 25 oct. 2008 1 réponse Bonjour, j'aimerais savoir comment concacténer un string et un int en c++. merciConfiguration: Windows XP Firefox 3.0.1 Afficher la suite 1 réponse Trié par votes Votes Date Date décroissante Réponse 1 / 1 be__good #include <sstream> ostringstream nom; nom << string << int; Pour obtenir un string : nom.str() Discussions similaires Input string was not in a correct format Tetelle Cannot access offset of type string on string... WTF ? ephelya Problème avec les string yannick2013 VLI Product String Madmat Sujet Précédent Sujet Suivant
Réponse 1 / 1 be__good #include <sstream> ostringstream nom; nom << string << int; Pour obtenir un string : nom.str()