Question: Instead of having several arrays, we will create a user-defined structure called Expression and have only one array of objects of type Expression. Structure Expression
Instead of having several arrays, we will create a user-defined structure called Expression and have only one array of objects of type Expression. Structure Expression has a name, a value, a type, and two operands. The class will also have methods print, setVarValue, and computeValue. These methods do not have to take the index of the expression we are currently operating on, since that expression would be the object itself. Also, we only need to pass one array of expressions instead of several arrays.
c++ , please suggest a code of the above.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
