阅读背景:

在尝试打印堆栈的en元素时,堆栈实现崩溃

来源:互联网 

I'm trying to implement a dynamic stack using an array. The user enters the number of the letters of the word he wants to put in the stack. If the stack is empty then a block is created to hold the information that the user passes to the stack. If not then the stack is reallocated so it can hold one more block of information(word). Then the user enters the word that he wants to be put in the stack(At the part that the index of the stack is printed). The program seems to crash after the second word is done entering the stack.I'm trying to implement a dynamic stack using a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: