std::string probl�me d'initialisation
Bonjour
j'ai un probl�me avec std::string c'est un peu b�te mais je suis bloqu� puis la fac ne le traite pas voil�
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| )
{
std::string s("");
//s="[TC"+msg.orig_addr()+" "+msg.hop_count()+" "+ msg.msg_seq_num()+" ";
int count=msg.tc().count;
for(int i=0 ; i<count;i++)
{
s+= msg.tc().nb_main_addr(i);
s+=" ";
} |
mon erreur
Code:
1 2
|
error: variable std::string s has initializer but incomplete type |
je voudrais savoir aussi s'il y a une m�thode de convertir vers string sans passer par ostream
merci