Bonjour,
J'aimerais simplement savoir comment stocker(dans une variable string) ce que l'on affiche dans le cout.
J'esaaye de biidouller un peu mais je n'obtiens aucun résultat.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 char content[10] = {'0','0','0','0','0','0','0','0','0','\0'}; streambuf *adr = cout.rdbuf(); cout << this; adr->pubsetbuf(content,10); string publicBoxAdr = content;
Partager