# | Line 4 | Line 4 | |
---|---|---|
4 | // | |
5 | // $Id$ | |
6 | ||
7 | + | #include <iostream> |
8 | + | #include <string> |
9 | #include "DoublyLinkedList.hpp" | |
10 | ||
11 | + | using namespace std; |
12 | + | |
13 | int main(int argc, char* argv[]) | |
14 | { | |
15 | DoublyLinkedList<int> list; | |
16 | ||
17 | + | list.addFront(1); |
18 | + | list.addBack(2); |
19 | + | cout.setf(ios_base::boolalpha); |
20 | + | |
21 | + | cout << "list.contains(1) = " << list.contains(1) << '\n' |
22 | + | << "list.contains(3) = " << list.contains(3) << '\n'; |
23 | + | |
24 | return 0; | |
25 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |