CIS 11: Data Structures and Algorithms

Project F

Complete Project 10 from Chapter 7 of the text. Directions are on page 387.

double read_and_evaluate(istream& i) {
  if (i.peek() != '\n') {
    expression inFix(i);
    expression postFix = convertToPostFix(inFix);
    return evaluatePostFix(postFix); }
}

When you're satisfied with the program, submit your work via the CATE form for Project F.

Legend: method/function keyword literal

2007/03/31