| 41 | } |
| 42 | } |
| 43 | int top() |
| 44 | { |
| 45 | if(this->size == 0) |
| 46 | { |
| 47 | cout<<"The Stack is Empty"<<endl; |
| 48 | return -1; |
| 49 | } |
| 50 | else |
| 51 | { |
| 52 | int x = this->a[0] ; |
| 53 | return x ; |
| 54 | } |
| 55 | } |
| 56 | void pop() |
| 57 | { |
| 58 | if(this->size == 0) |
no outgoing calls
no test coverage detected