Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define top(S) S.top
- #define info(S) S.info
- using namespace std;
- const int MAXSTACK = 10;
- typedef char infotype;
- struct stack {
- infotype info[MAXSTACK];
- int top;
- };
- void createStack(stack &S);
- bool isEmpty(stack S);
- bool isFull(stack S);
- void push(stack &s,infotype x);
- void pop(stack &s,infotype &x);
- void printInfo(stack S);
- void ascending(stack &S);
- void descending(stack &S);
- void stringToStack(stack &S,const string &str);
- void reverseStack(stack &S);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement