-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathint_stack.h
36 lines (32 loc) · 1.24 KB
/
int_stack.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef INT_STACK_H
#define INT_STACK_H
#include <stack>
#include <iostream>
#include <string>
#include <map>
#include <functional>
#include <cctype>
#include <sstream>
#include <queue>
extern std::stack<int> myStack;
std::stack<int> addition(std::stack<int>& intStack);
std::stack<int> subtraction(std::stack<int>& intStack);
std::stack<int> multiplication(std::stack<int>& intStack);
std::stack<int> division(std::stack<int>& intStack);
std::stack<int> pop_item(std::stack<int>& intStack);
std::stack<int> dup(std::stack<int>& intStack);
std::stack<int> swap(std::stack<int>& intStack);
std::stack<int> over(std::stack<int>& intStack);
std::stack<int> rot(std::stack<int>& intStack);
std::stack<int> two_swap(std::stack<int>& intStack);
std::stack<int> two_over(std::stack<int>& intStack);
std::stack<int> two_dup(std::stack<int>& intStack);
std::stack<int> mod(std::stack<int>& intStack);
std::stack<int> div_mod(std::stack<int>& intStack);
std::stack<int> equality(std::stack<int>& intStack);
std::stack<int> less(std::stack<int>& intStack);
std::stack<int> greater(std::stack<int>& intStack);
std::stack<int> and_comp(std::stack<int>& intStack);
std::stack<int> or_comp(std::stack<int>& intStack);
std::stack<int> invert(std::stack<int>& intStack);
#endif