Don't like ads? PRO users don't see any ads ;-)

mystack.h

By: t1nman on May 22nd, 2012  |  syntax: C  |  size: 0.23 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #define SIZE 200
  2.  
  3. typedef struct
  4. {
  5.     char v[SIZE];
  6.     int top;
  7. } Stack;
  8.  
  9. void push(Stack *S, char val);
  10. char pop(Stack *S);
  11. void init(Stack *S);
  12. char showtop(Stack *S);
  13. int empty(Stack *S);
  14. void StackPrint(Stack *S);