ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/ccscs20/UnitTest.cpp
(Generate patch)

Comparing UnitTest.cpp (file contents):
Revision 7 by Douglas Thrift, 2004-05-14T00:13:01-07:00 vs.
Revision 8 by Douglas Thrift, 2004-05-14T11:26:01-07:00

# Line 36 | Line 36 | int main(int argc, char* argv[])
36          cout << "list.contains(2) = " << list.contains(2) << '\n'
37                  << "list.contains(5) = " << list.contains(5) << '\n';
38  
39 <        Iterator<int> itor(list.iterator());
40 <
41 <        do
39 >        for (Iterator<int> itor(list.iterator()); !itor.end(); itor++)
40          {
41                  cout << *itor << '\n';
42          }
45        while ((itor++).next());
43  
44          return 0;
45   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines