Expression Calculator3ProLinga Calc LibraryExpression CalculatorClass used to perform C expression calculations.Synopsis
#include <prolinga/Calc.hpp>
class PlCalc
{
public:
PlCalc();
~PlCalc();
char* getCalc (char *expression);
...
};
typedef PlCalc *PlCalcPtr;
Description
This class is used to calculate the result of an expression.
DetailsPlCalc::getCalc ()PlCalc::getCalcchar* PlCalc::getCalc (char *expression);
This function is the calculation expression function. A string containing a calculation expression will be processed
and the result of this calculation will be returned.
expression : the calculation expression string.Returns : the result of the expression.