Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- #include<cassert>
- #include<iostream>
-
- #include"DLL.hh"
- #include"Stack.hh"
-
- int main ()
- {
- Stack<int> s1;
- for (int i=1; i<=5; i++)
- s1.push(i);
-
- Stack<int> s2(s1);
- s2 = s1;
- while (!s2.empty())
- {
- std::cout << s2.top() << std::endl;
- s2.pop();
- }
- }
|