/*_##################################### #######################################
_##
_ ## One instance created using the generic stack module to accommodate different types of data
_ ## Author: xwlee
_ ## Time: 2007.01.02
### Chang'an University
_ ## Development condition: win2003 SERVER + vc6.0
_##
_ ## Temp. cpp File
_####################################### ###################################*/
# Include <iostream>
# Include <stdlib. h>
# Include "Stack. H"
Using namespace STD;
Generic_stack (INT, _ int, 10)
Generic_stack (float, _ float, 10)
Int main ()
{
Cout <"/n ====================================== =================================" <Endl;
Push_int (5 );
Push_int (22 );
Push_int (15 );
Push_float (25.3 );
Push_float (-1, 40.5 );
While (! Is_empty_int ())
{
Cout <"popping" <top_int () <Endl;
Pop_int ();
}
While (! Is_empty_float ())
{
Cout <"popping" <top_float () <Endl;
Pop_float ();
}
Return 0;
}