[問題] 後序轉中序

看板C_and_CPP (C/C++)作者時間13年前 (2012/12/10 09:58), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) C++ 問題(Question): E,C 多了括號 餵入的資料(Input): AB/C-DE*+AC*- 預期的正確結果(Expected Output): A/B-C+D*E-A*C 錯誤結果(Wrong Output): A/B-C+D*(E)-A*(C) 程式碼(Code):(請善用置底文網頁, 記得排版) http://codepad.org/bmMtkcnm 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.254.247.137 ※ 編輯: nex532 來自: 111.254.247.137 (12/10 10:32) ※ 編輯: nex532 來自: 111.254.247.137 (12/10 11:11)

12/10 11:46, , 1F
你可以試試看把 AB+C* 轉中序
12/10 11:46, 1F
文章代碼(AID): #1GnK6gQJ (C_and_CPP)
文章代碼(AID): #1GnK6gQJ (C_and_CPP)