题目内容

在栈Stack的定义中,push方法的参数为什么要用引用方式定义?

查看答案
更多问题

在栈Stack的定义中,类型Stack_entry的目的是什么?具体使用Stack时,如何将栈元素类型定义成单精度浮点数?

在栈Stack的定义中,类型Error_code的目的是什么?在栈Stack的实现中,类型Error_code包含有哪2种具体的值?这两种值分别对应什么情况?

voidExtended_stack::clear()/*Pre: None.Post: If theExtended_stack is not empty, all entries are removed.*/{ }boolExtended_stack::full() const/*Pre: None.Post: If theExtended_stack is full, true is returned.Otherwise false is returned.*/{ }int Extended_stack::size()const/*Pre: None.Post:Returns the number of entries in the Extended_stack*/{ }

在栈Stack的应用案例(Calculator)中,表达式采用了什么形式?这种形式的好处是什么?该案例提供了哪7种操作?

答案查题题库