Calculator
Step 2
|
Go to the source code of this file.
Functions | |
double | get_variable (std::string const &name) |
void | set_variable (std::string name, double value) |
double get_variable | ( | std::string const & | name | ) |
Get the value of a variable.
name | The variable name |
name
or 0.0 if the variable is undefined. Definition at line 18 of file variables.cpp.
Referenced by parser::get_primary().
void set_variable | ( | std::string | name, |
double | value | ||
) |
Set the value of a variable.
name | The variable name |
value | The value. if the variable is already defined, changes its value. |
Definition at line 23 of file variables.cpp.
Referenced by parser::get_expr().