最佳答案:堆栈就是先入后出的数据结构。如果用c语言来实现的话用个struct先定义一个栈的节点structnode;typedefstrcutnode*position;typedefpositionstack