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