I am trying to run this code
tResults = itos(Freq)+"\t"dtos(maxTemp)+"\t"+dtos(xB * FP.parU[1])+"\t"+dtos(xH * FP.parI[1])+"\t"+dtos(FP.parI[1]);
string MaxResults::itos(int i)
{
stringstream s;
s << i;
return s.str();
}
string MaxResults::dtos(double i)
{
stringstream s;
s << i;
return s.str();
}
and when I try to compile, g++ tells me
error: expected `;' before ‘dtos’
but I don't see where I would need a semicolon in there. Is there a concept that I'm missing, or am I just an idiot?