#include "stack.h" #include
// for srandom(), random() #include
// for time() #include
int main () { for (srandom (time (0L)); !Stack::is_full(); Stack::push(random ())); while (!Stack::is_empty ()) cout << Stack::pop () << "\n"; }