題組內容

四、

⑵假設已有一資料抽象形態 stack,試說明下列程式片段中每一指令之功能。(10 分) void main( ){ int top_one; stack stk; stk.push(42); stk.push(17); top_one = stk.top(); … }