
Originally Posted by
JimDaniel
Have you stepped this through in a debugger or by other means to see exactly where the algorithm goes wrong? Seems like you could easily narrow it down a bit.
Apparently the slot is being called, as e->evaluate() is being called, and apparently it calculates the correct value as seen in your output window. But are you completely sure it returns the correct value to the function? Add an intermediary double variable to the function to hold the return value, then see what that is:
double d = e->evaluate();
//check what 'd' is...
I'm with the others who think it must be a bug in evaluate().
And if you have to create an object on the heap in this case, add this to the end of your function:
delete e;
e = 0;
than kyou for all 
in my fonction
double arithmeticExpression::evluate()
double arithmeticExpression::evluate()
To copy to clipboard, switch view to plain text mode
i make
double d = pileDouble.getTopData() ;
return d;
double d = pileDouble.getTopData() ;
return d;
To copy to clipboard, switch view to plain text mode
it work now 
it was
return pileDouble.getTopData();
return pileDouble.getTopData();
To copy to clipboard, switch view to plain text mode
thank you
++
Bookmarks