\begin{flushleft}
\begin{minipage}[t]{\textwidth}
\hrulefill

\vspace*{-5mm}

\begin{verbatim}
#include<iostream.h>
#include<LINK/basic/List.h>
main()
{
        List<int> list1;
        SortedList<int> list2;
        list1.append(2); list2.append(2);
        list1.append(1); list2.append(1);

        List<int> list3(list1);
        list3.append(3);

        List<List<int> > llist;
        llist.append(list1); llist.append(list2); llist.append(list3);
        Iterator<List<int> > it1(&llist);
        Iterator<List<int> > it2(&llist);
        List<int> temp1, temp2;
        while (it1(temp1)) {
            while (it2(temp2)) {
                if (temp1 == temp2)
                        cout <<"("<< temp1 << " == " << temp2 << ")\t" ;
                if (temp1 != temp2)
                        cout <<"(" << temp1 << " != " << temp2 <<  ")\t" ;
                if (temp1 <= temp2)
                        cout <<"(" << temp1 << " <= " << temp2 <<  ")\t" ;
                if (temp1 < temp2)
                        cout <<"(" << temp1 << " < " << temp2 <<  ")\t" ;
                if (temp1 >= temp2)
                        cout <<"(" << temp1 << " >= " << temp2 <<  ")\t" ;
                if (temp1 > temp2)
                        cout <<"(" << temp1 << " > " << temp2 <<  ")\t" ;
                cout << endl;
            }
            it2.reset();
        }
}
\end{verbatim}

\vspace*{-7mm}

\hrulefill

\vspace*{-5mm}

\begin{verbatim} 
((2 1) == (2 1))        ((2 1) <= (2 1))        ((2 1) >= (2 1))        
((2 1) != (1 2))        ((2 1) >= (1 2))        ((2 1) > (1 2)) 
((2 1) != (2 1 3))      ((2 1) <= (2 1 3))      ((2 1) < (2 1 3))       
((1 2) != (2 1))        ((1 2) <= (2 1))        ((1 2) < (2 1)) 
((1 2) == (1 2))        ((1 2) <= (1 2))        ((1 2) >= (1 2))        
((1 2) != (2 1 3))      ((1 2) <= (2 1 3))      ((1 2) < (2 1 3))       
((2 1 3) != (2 1))      ((2 1 3) >= (2 1))      ((2 1 3) > (2 1))       
((2 1 3) != (1 2))      ((2 1 3) >= (1 2))      ((2 1 3) > (1 2))       
((2 1 3) == (2 1 3))    ((2 1 3) <= (2 1 3))    ((2 1 3) >= (2 1 3))    
\end{verbatim}

\vspace*{-6mm}

\hrulefill
\end{minipage}
\end{flushleft}
