Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Test/Stack_Test.cpp

Go to the documentation of this file.
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

Generated on Sun Oct 14 18:46:44 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001