栈空判断
| 16 | |
| 17 | // 栈空判断 |
| 18 | bool StackEmpty(S){ |
| 19 | if(S.top==-1){ |
| 20 | // 栈空 |
| 21 | return true; |
| 22 | }else{ |
| 23 | // 栈非空 |
| 24 | return false; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // 进栈 |
| 29 | bool Push(SqStack &S,ElemType x){ |
nothing calls this directly
no outgoing calls
no test coverage detected