/*------------------------------------------------------------------*/ /* teststackao.c */ /*------------------------------------------------------------------*/ #include #include "stackao.h" int main(int argc, char *argv[]) /* Test the Stack abstract object. */ { Stack_init(); Stack_push(1); Stack_push(2); Stack_push(3); while (! Stack_isEmpty()) printf("%d\n", Stack_pop()); Stack_free(); return 0; }