This is my code:
stringstream str_number
string description
while(!str_number.eof())
{
str_number >> str_description;
if (str_description.length() < 1)
{
break;
}
description = description +" "+ str_description;
}
My problem is that if the description is more than one string, the last string is repeated twice. For example if the description is: "Hello World," then the final description becomes: "Hello World World."