Remplace
if(ch[i]!='+' && ch[i]!='-' && ch[i]!='/' && ch[i]!='*')
{
temp1=(double) ch[i];
tmp=concat(tmp,temp1);
}
par
if(ch[i]!='+' && ch[i]!='-' && ch[i]!='/' && ch[i]!='*')
{
temp1=(double)ch[i];
temp1-=48; // Pour conversion en numérique
tmp=tmp*10+temp1; // Pour la concaténation
}