00001 #ifndef __J2K__StackTest_CPP__
00002 #define __J2K__StackTest_CPP__
00003
00004 int main()
00005 {
00006 Stack L1;
00007 Stack L2(15);
00008
00009 L2.push(10);
00010 L2.push(20);
00011 L2.push(15);
00012
00013 while( !L2.isEmpty() )
00014 {
00015 L1.push(L2.pop());
00016 cout << L1.topValue() << " ";
00017 }
00018
00019 cout << "\n";
00020 cout << "New top: " << L1.topValue() << "\n";
00021
00022 L1.clear();
00023
00024 cout << "That is all.\n";
00025
00026 return(0);
00027 }
00028
00029 #endif // End of StackTest.cpp