HW #7 - designed in chapter 5. ? 9. Write the difiniton of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
David Carothers CS 230 11/7/07 Homework # 7 Excercises 5. Write the equivalent infix expressions for the following postfix expressions. a. a b * c + a*b+c b. a b + c d - * (a+b)*(c-d) c. a b – c- d * ((a-b) – c) * d 8. Write the definition of the function template printListReverse that uses a stack to print a linked list In reverse order. Assume that the function is a member of the class linkedListType,
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: designed in chapter 5. ? 9. Write the difiniton of the function template second that takes as a parameter a stack object and returns the second element of the stack. The original stack remains unchanged. ? 10. Write the definition of the function template clear that takes as a parameter a stack object of the type stack and removes all the elements from the stack....
View Full Document

This note was uploaded on 02/21/2012 for the course COMPUTER CS 230 taught by Professor Idk during the Spring '12 term at Capitol College.

Ask a homework question - tutors are online