Menu

[solved] – Question 90691

Carry out the modification, discussed in Exercise 7, to the PARSE program of Chapter 10.
That is, make it possible to parse expressions containing floating-point numbers.
Combine the classes from Exercise 7 with the algorithms from PARSE. You’ll need to
operate on pointers to tokens instead of characters. This involves statements of the kind
Number* ptrN = new Number(ans);
s.push(ptrN);
and
Operator* ptrO = new Operator(ch);
s.push(ptrO);

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *