阅读背景:

需要对C ++中的Stacks和Templates进行一些澄清

来源:互联网 

So I have a problem I'm working on for my university class. Essentially the professor gives us a template in a header file and a main(), He asks us what would happen if we tried to "cout << s2.top();" and s2.pop(); after the multiple s2.push() and while loop (When the stack is empty). I already understand that after we cout the data in the stack, we pop() the last element until it is empty. Here is the code for stack.h:So I have a problem I'm working on for my unive




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: