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
- Spring '12
- Computer Science, stack object, David Carothers CS, David Carothers