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