[問題] 後序轉中序
開發平台(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
12/10 11:46, 1F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章