// Stack client // COMP1521 18s1 #include #include "Stack.h" int main(void) { Stack myStack; // uninitialized Stack int x; // variable to hold inputs printf("Hello\n"); initStack(&myStack); while (scanf("%d",&x) == 1) { if (x < 0) break; if (!pushStack(&myStack, x)) break; showStack(myStack); } printf("Now we pop ...\n"); while (!isEmptyStack(myStack)) { printf("%d\n", popStack(&myStack)); } return 0; }