Char(9) ---> std::string en c++
Résolu/Fermé
McLovin1
Messages postés
1
Date d'inscription
lundi 28 juillet 2008
Statut
Membre
Dernière intervention
28 juillet 2008
-
28 juil. 2008 à 17:32
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 - 28 juil. 2008 à 21:02
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 - 28 juil. 2008 à 21:02
A voir également:
- Char(9) ---> std::string en c++
- Internet explorer 9 - Télécharger - Navigateurs
- Filmora 9 - Télécharger - Montage & Édition
- 9/14 sur 20 ✓ - Forum Loisirs / Divertissements
- 9/13 sur 20 ✓ - Forum Bureautique
- Livre catégorie 9 signification ✓ - Forum Loisirs / Divertissements
1 réponse
mamiemando
Messages postés
33079
Date d'inscription
jeudi 12 mai 2005
Statut
Modérateur
Dernière intervention
23 avril 2024
7 749
28 juil. 2008 à 21:02
28 juil. 2008 à 21:02
Ben avec le constructeur ?
Bonne chance
#include <string> #include <iostream> int main(){ char buffer[9] = "plop"; std::string str(buffer); std::cout << str << std::endl; return 0; }
Bonne chance