#include #include #include #include "stack.h" using namespace std; int main(){ datatype item; //Creating a stack of size 20 stack s(20); //Resetting the seed for random number generator srand(time(0)); //Push 10 randomly picked elements ranging from //0 to 49 on the stack for(int i=1;i<=10;++i){ item =rand()%50; s.push(item); } //Now pop 5 of them, every time we pop we display //what got popped for(i=1;i<=5;++i){ s.pop(item); cout<