#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();
	}
}
