Für Vorlesungen, bitte die Webseite verwenden. https://flavigny.de/lecture
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
280B

  1. #include<cassert>
  2. #include<iostream>
  3. #include"DLL.hh"
  4. #include"Stack.hh"
  5. int main ()
  6. {
  7. Stack<int> s1;
  8. for (int i=1; i<=5; i++)
  9. s1.push(i);
  10. Stack<int> s2(s1);
  11. s2 = s1;
  12. while (!s2.empty())
  13. {
  14. std::cout << s2.top() << std::endl;
  15. s2.pop();
  16. }
  17. }