Rechercher : dans
Par :

Prog C++

Ghost, le 31 déc 2001 à 10:10:54
 Signaler ce message aux modérateurs Revenir à la discussion

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
}